-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
76 lines (59 loc) · 1.65 KB
/
settings.gradle.kts
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import groovy.lang.MissingPropertyException
pluginManagement {
repositories {
// Repositories
maven("https://maven.deftu.dev/releases")
maven("https://maven.fabricmc.net")
maven("https://maven.architectury.dev/")
maven("https://maven.minecraftforge.net")
maven("https://repo.essential.gg/repository/maven-public")
maven("https://server.bbkr.space/artifactory/libs-release/")
maven("https://jitpack.io/")
// Snapshots
maven("https://maven.deftu.dev/snapshots")
mavenLocal()
// Default repositories
gradlePluginPortal()
mavenCentral()
}
plugins {
kotlin("jvm") version("2.0.0")
id("dev.deftu.gradle.multiversion-root") version("2.2.1")
}
}
val projectName: String = extra["mod.name"]?.toString()
?: throw MissingPropertyException("mod.name has not been set.")
rootProject.name = projectName
rootProject.buildFileName = "root.gradle.kts"
listOf(
"1.8.9-forge",
"1.12.2-forge",
"1.16.5-forge",
"1.16.5-fabric",
"1.17.1-forge",
"1.17.1-fabric",
"1.18.2-forge",
"1.18.2-fabric",
"1.19.2-forge",
"1.19.2-fabric",
"1.19.4-forge",
"1.19.4-fabric",
"1.20.1-forge",
"1.20.1-fabric",
"1.20.2-forge",
"1.20.2-neoforge",
"1.20.2-fabric",
"1.20.4-forge",
"1.20.4-neoforge",
"1.20.4-fabric",
"1.20.6-neoforge",
"1.20.6-fabric",
"1.21-neoforge",
"1.21-fabric"
).forEach { version ->
include(":$version")
project(":$version").apply {
projectDir = file("versions/$version")
buildFileName = "../../build.gradle.kts"
}
}