-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.gradle
52 lines (41 loc) · 1.02 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
40
41
42
43
44
45
46
47
48
49
50
51
52
import org.apache.tools.ant.taskdefs.condition.Os
pluginManagement {
repositories {
jcenter()
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
gradlePluginPortal()
}
plugins {
id 'fabric-loom' version "${loom_version}"
}
}
ext.includedFabricProjects = []
def buildFabricProject(String proj)
{
exec {
workingDir "dependencies/${proj}"
if (Os.isFamily(Os.FAMILY_WINDOWS))
executable 'gradlew.bat'
else
executable 'gradlew'
args 'build'
includedFabricProjects.each {
p -> args('--include-build', "../${p}")
}
}
}
def includeFabricProject(String proj)
{
if (gradle.startParameter.getTaskNames().any {t -> t == 'setup'})
buildFabricProject proj
ext.includedFabricProjects += proj
includeBuild("dependencies/${proj}")
}
includeFabricProject 'mc-fix_mc-197524'
includeFabricProject 'mc-fix_mc-196542'
includeFabricProject 'mc-fix_mc-170012'
includeFabricProject 'mc-fix_mc-170010'
includeFabricProject 'mc-fix_mc-196725'