1
- // version: 1689409577
1
+ // version: 1690104383
2
2
/*
3
3
DO NOT CHANGE THIS FILE!
4
4
Also, you may replace this file at any time if there is an update available.
@@ -69,7 +69,7 @@ plugins {
69
69
id ' com.diffplug.spotless' version ' 6.13.0' apply false // 6.13.0 is the last jvm8 supporting version
70
70
id ' com.modrinth.minotaur' version ' 2.+' apply false
71
71
id ' com.matthewprenger.cursegradle' version ' 1.4.0' apply false
72
- id ' com.gtnewhorizons.retrofuturagradle' version ' 1.3.19 '
72
+ id ' com.gtnewhorizons.retrofuturagradle' version ' 1.3.21 '
73
73
}
74
74
75
75
print (" You might want to check out './gradlew :faq' if your build fails.\n " )
@@ -575,13 +575,28 @@ repositories {
575
575
}
576
576
}
577
577
if (includeWellKnownRepositories. toBoolean()) {
578
- maven {
579
- name " CurseMaven"
580
- url " https://cursemaven.com"
581
- content {
578
+ exclusiveContent {
579
+ forRepository {
580
+ maven {
581
+ name " CurseMaven"
582
+ url " https://cursemaven.com"
583
+ }
584
+ }
585
+ filter {
582
586
includeGroup " curse.maven"
583
587
}
584
588
}
589
+ exclusiveContent {
590
+ forRepository {
591
+ maven {
592
+ name = " Modrinth"
593
+ url = " https://api.modrinth.com/maven"
594
+ }
595
+ }
596
+ filter {
597
+ includeGroup " maven.modrinth"
598
+ }
599
+ }
585
600
maven {
586
601
name = " ic2"
587
602
url = " https://maven.ic2.player.to/"
@@ -623,7 +638,7 @@ dependencies {
623
638
}
624
639
}
625
640
if (usesMixins. toBoolean()) {
626
- implementation(mixinProviderSpec)
641
+ implementation(modUtils . enableMixins( mixinProviderSpec) )
627
642
} else if (forceEnableMixins. toBoolean()) {
628
643
runtimeOnlyNonPublishable(mixinProviderSpec)
629
644
}
@@ -677,9 +692,6 @@ if (file('dependencies.gradle.kts').exists()) {
677
692
}
678
693
679
694
def mixingConfigRefMap = ' mixins.' + modId + ' .refmap.json'
680
- def mixinTmpDir = buildDir. path + File . separator + ' tmp' + File . separator + ' mixins'
681
- def refMap = " ${ mixinTmpDir} " + File . separator + mixingConfigRefMap
682
- def mixinSrg = " ${ mixinTmpDir} " + File . separator + " mixins.srg"
683
695
684
696
tasks. register(' generateAssets' ) {
685
697
group = " GTNH Buildscript"
@@ -711,46 +723,17 @@ tasks.register('generateAssets') {
711
723
}
712
724
713
725
if (usesMixins. toBoolean()) {
714
- tasks. named(" reobfJar" , ReobfuscatedJar ). configure {
715
- extraSrgFiles. from(mixinSrg)
716
- }
717
-
718
726
tasks. named(" processResources" ). configure {
719
727
dependsOn(" generateAssets" )
720
728
}
721
729
722
730
tasks. named(" compileJava" , JavaCompile ). configure {
723
- doFirst {
724
- new File (mixinTmpDir). mkdirs()
725
- }
726
731
options. compilerArgs + = [
727
- " -AreobfSrgFile=${ tasks.reobfJar.srg.get().asFile} " ,
728
- " -AoutSrgFile=${ mixinSrg} " ,
729
- " -AoutRefMapFile=${ refMap} " ,
730
732
// Elan: from what I understand they are just some linter configs so you get some warning on how to properly code
731
733
" -XDenableSunApiLintControl" ,
732
734
" -XDignore.symbol.file"
733
735
]
734
736
}
735
-
736
- pluginManager. withPlugin(' org.jetbrains.kotlin.kapt' ) {
737
- kapt {
738
- correctErrorTypes = true
739
- javacOptions {
740
- option(" -AreobfSrgFile=${ tasks.reobfJar.srg.get().asFile} " )
741
- option(" -AoutSrgFile=$mixinSrg " )
742
- option(" -AoutRefMapFile=$refMap " )
743
- }
744
- }
745
- tasks. configureEach { task ->
746
- if (task. name == " kaptKotlin" ) {
747
- task. doFirst {
748
- new File (mixinTmpDir). mkdirs()
749
- }
750
- }
751
- }
752
- }
753
-
754
737
}
755
738
756
739
tasks. named(" processResources" , ProcessResources ). configure {
@@ -768,7 +751,6 @@ tasks.named("processResources", ProcessResources).configure {
768
751
}
769
752
770
753
if (usesMixins. toBoolean()) {
771
- from refMap
772
754
dependsOn(" compileJava" , " compileScala" )
773
755
}
774
756
}
@@ -1311,7 +1293,7 @@ def addCurseForgeRelation(String type, String name) {
1311
1293
1312
1294
// Updating
1313
1295
1314
- def buildscriptGradleVersion = " 8.1 .1"
1296
+ def buildscriptGradleVersion = " 8.2 .1"
1315
1297
1316
1298
tasks. named(' wrapper' , Wrapper ). configure {
1317
1299
gradleVersion = buildscriptGradleVersion
0 commit comments