generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
34 lines (31 loc) · 876 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
pluginManagement {
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
maven {
name = 'Jitpack'
url = 'https://jitpack.io'
}
mavenCentral()
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id.equals("com.replaymod.preprocess")) {
useModule("com.github.FlorianMichael:preprocessor:${requested.version}")
}
}
}
}
rootProject.buildFileName = "root.gradle.kts"
var versions = [ // Every folder in versions/ has to be included here
"1.20.4",
"1.20.2"
]
versions.forEach { version ->
include(":${version}")
project(":${version}").projectDir = file("versions/${version}")
project(":${version}").buildFileName = "../../build.gradle"
}