blob: b2d3b256c554f70d2ceac2998775bc7fec705d1e (
plain)
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
57
58
59
60
61
62
|
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("https://repo.polyfrost.cc/releases")
maven("https://maven.architectury.dev/")
}
plugins {
val egtVersion = "0.1.10"
id("gg.essential.multi-version.root") version egtVersion
id("gg.essential.defaults.repo") version egtVersion
id("gg.essential.defaults.java") version egtVersion
id("gg.essential.multi-version.api-validation") version egtVersion
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "io.github.juuxel.loom-quiltflower-mini") {
useModule("com.github.wyvest:loom-quiltflower-mini:${requested.version}")
}
}
}
}
val mod_name: String by settings
val buildingCi = System.getProperty("BUILDING_CI") == "true"
rootProject.name = mod_name
if (!buildingCi) {
include(":lwjgl")
project(":lwjgl").apply {
projectDir = file("lwjgl/")
buildFileName = "root.gradle.kts"
}
}
include(":platform")
project(":platform").apply {
projectDir = file("versions/")
buildFileName = "root.gradle.kts"
}
listOf(
"1.8.9-forge",
"1.12.2-forge",
"1.16.2-forge",
"1.16.2-fabric"
).forEach { version ->
include(":platform:$version")
project(":platform:$version").apply {
projectDir = file("versions/$version")
buildFileName = "../build.gradle.kts"
}
if (!buildingCi) {
include(":lwjgl:$version")
project(":lwjgl:$version").apply {
projectDir = file("lwjgl/$version")
buildFileName = "../build.gradle.kts"
}
}
}
|