-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
39 lines (33 loc) · 1.13 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
rootProject.name = 'Cyan'
include('CyanWrapper')
include('CCFG')
include('CyanComponents')
include('CyanCore')
include('CyanUtil')
include('CyanLoader')
include('MixinSupport')
include('Cornflower')
include('MTK')
include('Fluid')
include('ClassTrust')
include('TrustExplorer')
include('MtkCLI')
apply from: 'config.gradle'
if (hasProperty("overrideGameVersion")) {
minecraft = getProperty("overrideGameVersion")
}
def nameModKit = "ModKit-$modkit"
def majorversion = minecraft
if (majorversion.split("\\.").length >= 3)
majorversion = majorversion.substring(0, majorversion.lastIndexOf("."))
if (file("ModKit-$modkit-$minecraft").exists())
nameModKit = "ModKit-$modkit-$minecraft";
else if (file("ModKit-$modkit-$majorversion").exists())
nameModKit = "ModKit-$modkit-$majorversion";
include(nameModKit)
project(":$nameModKit").name = "ModKit"
def nameCyanAPI = "CyanAPI-$modkit-$minecraft"
if (!file(nameCyanAPI).exists() && file("CyanAPI-$modkit-$majorversion").exists())
nameCyanAPI = "CyanAPI-$modkit-$majorversion"
include(nameCyanAPI)
project(":$nameCyanAPI").name = "CyanAPI"