generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 29
/
settings.gradle
56 lines (47 loc) · 1.34 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
55
56
import groovy.json.JsonSlurper
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven {
name("Fabric")
url("https://maven.fabricmc.net")
}
maven {
name("Architectury")
url("https://maven.architectury.dev")
}
maven {
name("MinecraftForge")
url("https://files.minecraftforge.net/maven")
}
maven {
name("NeoForge")
url("https://maven.neoforged.net/releases")
}
maven {
name("Jitpack")
url("https://jitpack.io")
}
}
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.get("versions")) {
include(":$version")
ProjectDescriptor proj = project(":$version")
proj.setProjectDir(file("versions/$version"))
proj.setBuildFileName("../${settings.versions.get(0)}/build.gradle")
}