1
- // version: 1656003793falsepattern51
1
+ // version: 1656003793falsepattern58
2
2
/*
3
3
DO NOT CHANGE THIS FILE!
4
4
@@ -46,9 +46,13 @@ buildscript {
46
46
name = " mavenpattern"
47
47
url = " https://mvn.falsepattern.com/releases/"
48
48
}
49
+ maven {
50
+ name = " usrv"
51
+ url = " https://mvn.falsepattern.com/usrv/"
52
+ }
49
53
}
50
54
dependencies {
51
- classpath ' com.github.GTNewHorizons :ForgeGradle:1.2.7 '
55
+ classpath ' net.minecraftforge.gradle :ForgeGradle:1.2.11 '
52
56
classpath ' com.falsepattern:jtweaker:0.2.1'
53
57
}
54
58
}
@@ -133,7 +137,7 @@ propertyDefaultIfUnset("modrinthProjectId", "")
133
137
propertyDefaultIfUnset(" modrinthDependencies" , " " )
134
138
propertyDefaultIfUnset(" curseForgeProjectId" , " " )
135
139
propertyDefaultIfUnset(" curseForgeRelations" , " " )
136
- propertyDefaultIfUnset(" changelog" , " No changelog URL was provided. " )
140
+ propertyDefaultIfUnset(" changelog" , " " )
137
141
138
142
propertyDefaultIfUnset(" remoteMappings" , " https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/" )
139
143
propertyDefaultIfUnset(" mappingsChannel" , " stable" )
@@ -303,15 +307,15 @@ dependencies {
303
307
annotationProcessor(" org.ow2.asm:asm-debug-all:5.0.3" )
304
308
annotationProcessor(" com.google.guava:guava:24.1.1-jre" )
305
309
annotationProcessor(" com.google.code.gson:gson:2.8.6" )
306
- annotationProcessor(" com.llamalad7:MixinExtras:0.0.12 -gasstation" )
307
- annotationProcessor(" org.spongepowered:mixin:0.8.5-gasstation_3 " )
308
- compile(" org.spongepowered:mixin:0.8.5-gasstation_3 " )
309
- compile(" com.llamalad7:MixinExtras:0.0.12 -gasstation" )
310
- compile(" com.falsepattern:00gasstation-mc1.7.10:0.3.4 :dev" )
310
+ annotationProcessor(" com.llamalad7:MixinExtras:0.1.1 -gasstation" )
311
+ annotationProcessor(" org.spongepowered:mixin:0.8.5-gasstation_7 " )
312
+ compile(" org.spongepowered:mixin:0.8.5-gasstation_7 " )
313
+ compile(" com.llamalad7:MixinExtras:0.1.1 -gasstation" )
314
+ compile(" com.falsepattern:00gasstation-mc1.7.10:0.5.1 :dev" )
311
315
} else if (hasMixinDeps. toBoolean()) {
312
- runtime(" org.spongepowered:mixin :0.8.5-gasstation_3 " )
313
- runtime(" com.llamalad7:MixinExtras :0.0.12-gasstation " )
314
- runtime(" com.falsepattern:00gasstation-mc1.7.10:0.3.4 :dev" )
316
+ runtime(" com.llamalad7:MixinExtras :0.1.1-gasstation " )
317
+ runtime(" org.spongepowered:mixin :0.8.5-gasstation_7 " )
318
+ runtime(" com.falsepattern:00gasstation-mc1.7.10:0.5.1 :dev" )
315
319
}
316
320
}
317
321
@@ -409,7 +413,7 @@ runClient {
409
413
410
414
if (usesMixins. toBoolean()) {
411
415
arguments + = [
412
- " --mods=.. /build/libs/$archivesBaseName -${ version} .jar"
416
+ " --mods=" + Paths . get( " $p rojectDir " ) . resolve(minecraft . runDir) . normalize() . relativize( Paths . get( " $p rojectDir /build/libs/$archivesBaseName -${ version} .jar" ))
413
417
]
414
418
}
415
419
@@ -439,7 +443,7 @@ runServer {
439
443
440
444
if (usesMixins. toBoolean()) {
441
445
arguments + = [
442
- " --mods=.. /build/libs/$archivesBaseName -${ version} .jar"
446
+ " --mods=" + Paths . get( " $p rojectDir " ) . resolve(minecraft . runDir) . normalize() . relativize( Paths . get( " $p rojectDir /build/libs/$archivesBaseName -${ version} .jar" ))
443
447
]
444
448
}
445
449
@@ -703,15 +707,24 @@ publishing {
703
707
}
704
708
}
705
709
710
+ if (project. changelog == " " ) {
711
+ File changelogFile = new File (System . getenv(" CHANGELOG_FILE" ) ?: " CHANGELOG.md" )
712
+ if (changelogFile. exists()) {
713
+ project. changelog = changelogFile. getText(" UTF-8" )
714
+ } else {
715
+ project. changelog = " No changelog was provided."
716
+ }
717
+ }
718
+ project. changelog = project. changelog. replace(" {version}" , modVersion)
706
719
707
- if (curseForgeProjectId != " " ) {
720
+ if (curseForgeProjectId != " " && System . getenv( " CURSEFORGE_TOKEN " ) != null ) {
708
721
apply plugin : ' com.matthewprenger.cursegradle'
709
722
curseforge {
710
- apiKey = System . getenv(" CURSEFORGE_TOKEN" ) ?: " "
723
+ apiKey = System . getenv(" CURSEFORGE_TOKEN" )
711
724
project {
712
725
id = curseForgeProjectId
713
- changelogType = " text "
714
- changelog = project. changelog. replace( " {version} " , modVersion)
726
+ changelogType = " markdown "
727
+ changelog = project. changelog
715
728
releaseType = modVersion. contains(" -a" ) ? " alpha" : modVersion. contains(" -b" ) ? " beta" : " release"
716
729
addGameVersion project. minecraft. version
717
730
addGameVersion " Forge"
@@ -736,18 +749,22 @@ if (curseForgeProjectId != "") {
736
749
addCurseForgeRelation(type, name)
737
750
}
738
751
}
752
+
753
+ if (usesMixins. toBoolean()) {
754
+ addCurseForgeRelation(" requiredDependency" , " gasstation" )
755
+ }
739
756
tasks. curseforge. dependsOn(build)
740
757
tasks. publish. dependsOn(tasks. curseforge)
741
758
}
742
759
743
- if (modrinthProjectId != " " ) {
760
+ if (modrinthProjectId != " " && System . getenv( " MODRINTH_TOKEN " ) != null ) {
744
761
apply plugin : ' com.modrinth.minotaur'
745
762
modrinth {
746
763
token = System . getenv(" MODRINTH_TOKEN" )
747
764
projectId = modrinthProjectId
748
765
versionNumber = modVersion
749
766
versionType = modVersion. contains(" -a" ) ? " alpha" : modVersion. contains(" -b" ) ? " beta" : " release"
750
- changelog = project. changelog. replace( " {version} " , modVersion)
767
+ changelog = project. changelog
751
768
uploadFile = jar
752
769
gameVersions = [project. minecraft. version]
753
770
loaders = [" forge" ]
@@ -766,6 +783,9 @@ if (modrinthProjectId != "") {
766
783
addModrinthDep(scope, type, name)
767
784
}
768
785
}
786
+ if (usesMixins. toBoolean()) {
787
+ addModrinthDep(" required" , " project" , " cdeAhgfp" )
788
+ }
769
789
tasks. modrinth. dependsOn(build)
770
790
tasks. publish. dependsOn(tasks. modrinth)
771
791
}
@@ -1098,4 +1118,8 @@ def propertyDefaultIfUnset(String propertyName, defaultValue) {
1098
1118
1099
1119
def getFile (String relativePath ) {
1100
1120
return new File (projectDir, relativePath)
1121
+ }
1122
+
1123
+ if (file(" addon_final.gradle" ). exists()) {
1124
+ apply from : " addon_final.gradle"
1101
1125
}
0 commit comments