forked from plusls/xaero-map-addition
-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.gradle
54 lines (44 loc) · 1.27 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
53
54
import groovy.json.JsonSlurper
pluginManagement {
repositories {
mavenLocal()
maven {
name("Fabric Maven")
url("https://maven.fabricmc.net")
}
maven {
name("Jitpack Maven")
url("https://jitpack.io")
}
maven {
name("Nyan Maven")
url("https://maven.hendrixshen.top")
}
maven {
name("Cotton")
url("https://server.bbkr.space/artifactory/libs-release")
}
mavenCentral()
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
switch (requested.id.id) {
case "com.replaymod.preprocess": {
useModule("com.github.Fallen-Breath:preprocessor:${requested.version}")
break
}
}
}
}
}
Map<String, List<String>> settings = file("settings.json").withReader {
new JsonSlurper().parse(it) as Map<String, List<String>>
}
for (String version : settings.versions) {
include(":$version")
ProjectDescriptor proj = project(":$version")
proj.setProjectDir(file("versions/$version"))
proj.setBuildFileName("../${settings.versions.get(0)}/build.gradle")
}
include(":fabricWrapper")