forked from MSDNicrosoft/Command-GUI-Buttons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
36 lines (31 loc) · 916 Bytes
/
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
import groovy.json.JsonSlurper
pluginManagement {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven {
name("Fabric")
url("https://maven.fabricmc.net/")
}
maven {
name("Jitpack")
url("https://jitpack.io")
}
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "com.replaymod.preprocess") {
useModule("com.github.Fallen-Breath:preprocessor:${requested.version}")
}
}
}
}
def settings = new JsonSlurper().parseText(file("settings.json").text)
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")