-
Notifications
You must be signed in to change notification settings - Fork 0
/
root.gradle.kts
129 lines (99 loc) · 4.04 KB
/
root.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
plugins {
id("dev.deftu.gradle.multiversion-root")
}
preprocess {
val neoforge_1_21 = createNode("1.21-neoforge", 1_21_00, "srg")
val fabric_1_21 = createNode("1.21-fabric", 1_21_00, "yarn")
val neoforge_1_20_06 = createNode("1.20.6-neoforge", 1_20_06, "srg")
val fabric_1_20_06 = createNode("1.20.6-fabric", 1_20_06, "yarn")
val forge_1_20_04 = createNode("1.20.4-forge", 1_20_04, "srg")
val neoforge_1_20_04 = createNode("1.20.4-neoforge", 1_20_04, "srg")
val fabric_1_20_04 = createNode("1.20.4-fabric", 1_20_04, "yarn")
val forge_1_20_02 = createNode("1.20.2-forge", 1_20_02, "srg")
val neoforge_1_20_02 = createNode("1.20.2-neoforge", 1_20_02, "srg")
val fabric_1_20_02 = createNode("1.20.2-fabric", 1_20_02, "yarn")
val forge_1_20_01 = createNode("1.20.1-forge", 1_20_01, "srg")
val fabric_1_20_01 = createNode("1.20.1-fabric", 1_20_01, "yarn")
val forge_1_19_04 = createNode("1.19.4-forge", 1_19_04, "srg")
val fabric_1_19_04 = createNode("1.19.4-fabric", 1_19_04, "yarn")
val forge_1_19_02 = createNode("1.19.2-forge", 1_19_02, "srg")
val fabric_1_19_02 = createNode("1.19.2-fabric", 1_19_02, "yarn")
val forge_1_18_02 = createNode("1.18.2-forge", 1_18_02, "srg")
val fabric_1_18_02 = createNode("1.18.2-fabric", 1_18_02, "yarn")
val forge_1_17_01 = createNode("1.17.1-forge", 1_17_01, "srg")
val fabric_1_17_01 = createNode("1.17.1-fabric", 1_17_01, "yarn")
val forge_1_16_05 = createNode("1.16.5-forge", 1_16_05, "srg")
val fabric_1_16_05 = createNode("1.16.5-fabric", 1_16_05, "yarn")
val forge_1_12_02 = createNode("1.12.2-forge", 1_12_02, "srg")
val forge_1_08_09 = createNode("1.8.9-forge", 1_08_09, "srg")
fabric_1_21.link(neoforge_1_21)
fabric_1_21.link(fabric_1_20_06, file("versions/1.21-fabric+1.20.6-fabric.txt"))
fabric_1_20_06.link(neoforge_1_20_06, file("versions/1.20.6-fabric+1.20.6-neoforge.txt"))
fabric_1_20_06.link(fabric_1_20_04)
forge_1_20_04.link(fabric_1_20_04)
neoforge_1_20_04.link(fabric_1_20_04)
fabric_1_20_04.link(fabric_1_20_02)
forge_1_20_02.link(fabric_1_20_02)
neoforge_1_20_02.link(fabric_1_20_02)
fabric_1_20_02.link(fabric_1_20_01)
forge_1_20_01.link(fabric_1_20_01)
fabric_1_20_01.link(fabric_1_19_04)
forge_1_19_04.link(fabric_1_19_04)
fabric_1_19_04.link(fabric_1_19_02, file("versions/1.19.4-fabric+1.19.2-fabric.txt"))
forge_1_19_02.link(fabric_1_19_02)
fabric_1_19_02.link(fabric_1_18_02)
forge_1_18_02.link(fabric_1_18_02)
fabric_1_18_02.link(fabric_1_17_01)
forge_1_17_01.link(fabric_1_17_01)
fabric_1_17_01.link(fabric_1_16_05, file("versions/1.17.1-fabric+1.16.5-fabric.txt"))
fabric_1_16_05.link(forge_1_16_05)
forge_1_16_05.link(forge_1_12_02, file("versions/1.16.5-forge+1.12.2-forge.txt"))
forge_1_12_02.link(forge_1_08_09, file("versions/1.12.2-forge+1.8.9-forge.txt"))
}
val versions = 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"
)
val buildVersions by tasks.creating {
group = "deftu"
dependsOn(versions.map { ":$it:build" })
}
listOf(
"DeftuReleasesRepository",
"DeftuSnapshotsRepository",
"MavenLocalRepository"
).forEach { repository ->
versions.forEach { version ->
project(":$version").tasks.register("fullReleaseWith$repository") {
group = "deftu"
dependsOn(":$version:publishAllPublicationsTo$repository")
dependsOn(":$version:publishMod")
}
}
project.tasks.register("fullReleaseWith$repository") {
group = "deftu"
dependsOn(versions.map { ":$it:fullReleaseWith$repository" })
}
}