@@ -30,7 +30,7 @@ val modName = project.property("mod.name").toString()
30
30
31
31
val minecraft = project.property(" minecraft.version" ).toString()
32
32
val loader = project.property(" loader.version" ).toString()
33
- val parchment = project.property(" parchment.version " ).toString()
33
+ val yarn = project.property(" yarn.build " ).toString()
34
34
35
35
val badpackets = project.property(" badpackets.version" ).toString()
36
36
val energy = project.property(" energy.version" ).toString()
@@ -41,12 +41,15 @@ val rei = project.property("rei.version").toString()
41
41
val architectury = project.property(" architectury.version" ).toString()
42
42
val wthit = project.property(" wthit.version" ).toString()
43
43
44
+ val isCI = System .getenv().getOrDefault(" CI" , " false" ) == " true" ;
45
+
44
46
plugins {
45
47
java
46
48
`maven- publish`
47
49
id(" fabric-loom" ) version(" 1.5-SNAPSHOT" )
48
50
id(" org.cadixdev.licenser" ) version(" 0.6.1" )
49
51
id(" org.ajoberstar.grgit" ) version(" 5.2.1" )
52
+ id(" dev.galacticraft.mojarn" ) version(" 0.1.1" )
50
53
}
51
54
52
55
group = " dev.galacticraft"
@@ -156,11 +159,8 @@ repositories {
156
159
157
160
dependencies {
158
161
minecraft(" com.mojang:minecraft:$minecraft " )
159
- mappings(if (parchment.isNotEmpty()) {
160
- loom.layered {
161
- officialMojangMappings()
162
- parchment(" org.parchmentmc.data:parchment-1.20.2:$parchment @zip" )
163
- }
162
+ mappings(if (! isCI && yarn.isNotEmpty()) {
163
+ mojarn.mappings(" net.fabricmc:yarn:$minecraft +build.$yarn :v2" )
164
164
} else {
165
165
loom.officialMojangMappings()
166
166
})
0 commit comments