-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
34 lines (29 loc) · 1.1 KB
/
build.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
plugins {
id("maven-publish")
id("fabric-loom").version("0.12-SNAPSHOT").apply(false)
// https://github.com/Juuxel/LoomQuiltflower
id("io.github.juuxel.loom-quiltflower").version("1.7.0").apply(false)
// https://github.com/ReplayMod/preprocessor
// https://github.com/Fallen-Breath/preprocessor
id("com.replaymod.preprocess").version("b7207cffa9")
id("org.ajoberstar.grgit").version("4.1.0")
}
preprocess {
def mc114 = createNode("1.14.4", 1_14_04, "mojang")
def mc115 = createNode("1.15.2", 1_15_02, "mojang")
def mc116 = createNode("1.16.5", 1_16_05, "mojang")
def mc117 = createNode("1.17.1", 1_17_01, "mojang")
def mc118 = createNode("1.18.2", 1_18_02, "mojang")
def mc119 = createNode("1.19", 1_19_00, "mojang") // root
mc114.link(mc115, null)
mc115.link(mc116, null)
mc116.link(mc117, null)
mc117.link(mc118, null)
mc118.link(mc119, null)
}
String realVersion = "${project.mod_version}"
if (project.pre_release != "") {
realVersion += "-${project.pre_release}+"
realVersion += grgit.head().abbreviatedId
}
version = realVersion