1- import net.fabricmc.loom.task.RemapJarTask
2-
31plugins {
4- id ' net.fabricmc.fabric-loom-remap '
2+ id ' net.fabricmc.fabric-loom'
53 id ' com.gradleup.shadow'
64}
75
86tasks. withType(JavaCompile ). configureEach {
9- // override, compile targeting J21
10- options. release = 21
7+ // override, compile targeting J25
8+ options. release = 25
119}
1210
1311repositories {
@@ -28,9 +26,8 @@ configurations {
2826
2927dependencies {
3028 // https://modmuss50.me/fabric.html
31- minecraft ' com.mojang:minecraft:1.21.11'
32- mappings loom. officialMojangMappings()
33- modImplementation ' net.fabricmc:fabric-loader:0.18.4'
29+ minecraft ' com.mojang:minecraft:26.1'
30+ implementation ' net.fabricmc:fabric-loader:0.18.4'
3431
3532 Set<String > apiModules = [
3633 " fabric-api-base" ,
@@ -40,12 +37,12 @@ dependencies {
4037
4138 // Add each module as a dependency
4239 apiModules. forEach {
43- modImplementation (fabricApi. module(it, ' 0.141.3+1.21.11 ' ))
40+ implementation (fabricApi. module(it, ' 0.144.0+26.1 ' ))
4441 }
4542
46- include(modImplementation (' me.lucko:fabric-permissions-api:0.6.1 ' ))
43+ include(implementation (' me.lucko:fabric-permissions-api:0.7.0 ' ))
4744
48- modImplementation (' eu.pb4:placeholder-api:2.8.2+1.21.10 ' )
45+ implementation (' eu.pb4:placeholder-api:3.0.0-beta.2+26.1 ' )
4946
5047 shade project(' :spark-common' )
5148 shade project(' :spark-minecraft' )
@@ -72,7 +69,7 @@ license {
7269}
7370
7471shadowJar {
75- archiveFileName = " spark-fabric-${ project.pluginVersion} -dev .jar"
72+ archiveFileName = " spark-fabric-${ project.pluginVersion} .jar"
7673 configurations = [project. configurations. shade]
7774
7875 relocate ' net.kyori.adventure' , ' me.lucko.spark.lib.adventure'
@@ -92,15 +89,6 @@ shadowJar {
9289 }
9390}
9491
95- tasks. register(' remappedShadowJar' , RemapJarTask ) {
96- dependsOn tasks. shadowJar
97- input = tasks. shadowJar. archiveFile
98- addNestedDependencies = true
99- archiveFileName = " spark-${ project.pluginVersion} -fabric.jar"
100- }
101-
102- tasks. assemble. dependsOn tasks. remappedShadowJar
103-
10492artifacts {
105- archives remappedShadowJar
93+ archives shadowJar
10694}
0 commit comments