1- // version: 1656003793falsepattern29
1+ // version: 1656003793falsepattern31
22/*
33DO NOT CHANGE THIS FILE!
44
@@ -24,7 +24,7 @@ buildscript {
2424 mavenLocal()
2525 maven {
2626 name = " forge"
27- url = " https://maven.minecraftforge.net "
27+ url = " https://mvn.falsepattern.com/forge/ "
2828 }
2929 maven {
3030 name = " sonatype"
@@ -36,11 +36,11 @@ buildscript {
3636 }
3737 maven {
3838 name = " jitpack"
39- url = " https://jitpack .falsepattern.com/"
39+ url = " https://mvn .falsepattern.com/jitpack /"
4040 }
4141 maven {
42- name = " mavenpattern "
43- url = " https://maven .falsepattern.com/"
42+ name = " mvnpattern "
43+ url = " https://mvn .falsepattern.com/releases /"
4444 }
4545 }
4646 dependencies {
@@ -120,11 +120,18 @@ propertyDefaultIfUnset("mavenArtifactId", "")
120120propertyDefaultIfUnset(" hasMixinDeps" , false )
121121propertyDefaultIfUnset(" mixinPreinitConfig" , " " )
122122propertyDefaultIfUnset(" remapStubs" , false )
123+ propertyDefaultIfUnset(" useObsoleteSpongeMixins" , false )
123124
124125propertyDefaultIfUnset(" remoteMappings" , " https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/" )
125126propertyDefaultIfUnset(" mappingsChannel" , " stable" )
126127propertyDefaultIfUnset(" mappingsVersion" , " 12" )
127128
129+ if (usesMixins. toBoolean() && ! useObsoleteSpongeMixins. toBoolean()) {
130+ // 1.1.2
131+ // Currently using upstream, will make a fork soon(tm)
132+ apply from : ' https://raw.githubusercontent.com/tox1cozZ/mixin-booter-legacy/30de05f4c3e41360f423d8c5fd4adc73d4677a37/gradle/configurations/v1.gradle'
133+ }
134+
128135String javaSourceDir = " src/main/java/"
129136String scalaSourceDir = " src/main/scala/"
130137String kotlinSourceDir = " src/main/kotlin/"
@@ -271,43 +278,53 @@ repositories {
271278 url = " https://gregtech.overminddl1.com/"
272279 }
273280 if (usesMixins. toBoolean() || hasMixinDeps. toBoolean()) {
274- maven {
275- name = " sponge"
276- url = " https://sponge.falsepattern.com/"
281+ if (useObsoleteSpongeMixins. toBoolean()) {
282+ maven {
283+ name = " sponge"
284+ url = " https://mvn.falsepattern.com/sponge"
285+ }
277286 }
278287 maven {
279- url = " https://jitpack .falsepattern.com/"
288+ url = " https://mvn .falsepattern.com/jitpack "
280289 }
281290 }
282291}
283292
284293dependencies {
285294 if (usesMixins. toBoolean()) {
286- annotationProcessor(" org.ow2.asm:asm-debug-all:5.0.3" )
287- annotationProcessor(" com.google.guava:guava:24.1.1-jre" )
288- annotationProcessor(" com.google.code.gson:gson:2.8.6" )
289- annotationProcessor(" org.spongepowered:mixin:0.8-20200110.181151-15" )
290- // using 0.8 to workaround a issue in 0.7 which fails mixin application
291- compile(" org.spongepowered:mixin:0.7.11-20180703.121122-1" ) {
292- // Mixin includes a lot of dependencies that are too up-to-date
293- exclude module : " launchwrapper"
294- exclude module : " guava"
295- exclude module : " gson"
296- exclude module : " commons-io"
297- exclude module : " log4j-core"
295+ if (useObsoleteSpongeMixins. toBoolean()) {
296+ annotationProcessor(" org.ow2.asm:asm-debug-all:5.0.3" )
297+ annotationProcessor(" com.google.guava:guava:24.1.1-jre" )
298+ annotationProcessor(" com.google.code.gson:gson:2.8.6" )
299+ annotationProcessor(" org.spongepowered:mixin:0.8-20200110.181151-15" )
300+ // using 0.8 to workaround a issue in 0.7 which fails mixin application
301+ compile(" org.spongepowered:mixin:0.7.11-20180703.121122-1" ) {
302+ // Mixin includes a lot of dependencies that are too up-to-date
303+ exclude module : " launchwrapper"
304+ exclude module : " guava"
305+ exclude module : " gson"
306+ exclude module : " commons-io"
307+ exclude module : " log4j-core"
308+ }
309+ compile(" com.github.GTNewHorizons:SpongeMixins:1.3.3:dev" )
310+ } else {
311+ compile(" com.github.tox1cozZ:mixin-booter-legacy:1.1.2" )
298312 }
299- compile(" com.github.GTNewHorizons:SpongeMixins:1.3.3:dev" )
300313 }
301314 if (hasMixinDeps. toBoolean()) {
302- runtime(" org.spongepowered:mixin:0.7.11-20180703.121122-1" ) {
303- // Mixin includes a lot of dependencies that are too up-to-date
304- exclude module : " launchwrapper"
305- exclude module : " guava"
306- exclude module : " gson"
307- exclude module : " commons-io"
308- exclude module : " log4j-core"
315+ if (useObsoleteSpongeMixins. toBoolean()) {
316+ runtime(" org.spongepowered:mixin:0.7.11-20180703.121122-1" ) {
317+ // Mixin includes a lot of dependencies that are too up-to-date
318+ exclude module : " launchwrapper"
319+ exclude module : " guava"
320+ exclude module : " gson"
321+ exclude module : " commons-io"
322+ exclude module : " log4j-core"
323+ }
324+ runtime(" com.github.GTNewHorizons:SpongeMixins:1.3.3:dev" )
325+ } else {
326+ runtime(" com.github.tox1cozZ:mixin-booter-legacy:1.1.2" )
309327 }
310- runtime(" com.github.GTNewHorizons:SpongeMixins:1.3.3:dev" )
311328 }
312329}
313330
@@ -378,18 +395,22 @@ jar {
378395}
379396
380397reobf {
381- if (usesMixins. toBoolean()) {
398+ if (usesMixins. toBoolean() && useObsoleteSpongeMixins . toBoolean() && file(mixinSrg) . exists() ) {
382399 addExtraSrgFile mixinSrg
383400 }
384401}
385402
386403afterEvaluate {
387404 if (usesMixins. toBoolean()) {
388405 tasks. compileJava {
406+ if (useObsoleteSpongeMixins. toBoolean()) {
407+ options. compilerArgs + = [
408+ " -AreobfSrgFile=${ tasks.reobf.srg} " ,
409+ " -AoutSrgFile=${ mixinSrg} " ,
410+ " -AoutRefMapFile=${ refMap} "
411+ ]
412+ }
389413 options. compilerArgs + = [
390- " -AreobfSrgFile=${ tasks.reobf.srg} " ,
391- " -AoutSrgFile=${ mixinSrg} " ,
392- " -AoutRefMapFile=${ refMap} " ,
393414 // Elan: from what I understand they are just some linter configs so you get some warning on how to properly code
394415 " -XDenableSunApiLintControl" ,
395416 " -XDignore.symbol.file"
@@ -694,7 +715,7 @@ task updateBuildScript {
694715 }
695716}
696717
697- if (! skipBuildScriptUpdateCheck. toBoolean() && isNewBuildScriptVersionAvailable(projectDir. toString())) {
718+ if (! project . getGradle() . startParameter . isOffline() && ! skipBuildScriptUpdateCheck. toBoolean() && isNewBuildScriptVersionAvailable(projectDir. toString())) {
698719 if (autoUpdateBuildScript. toBoolean()) {
699720 performBuildScriptUpdate(projectDir. toString())
700721 } else {
0 commit comments