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 {
@@ -24,13 +22,15 @@ repositories {
2422configurations {
2523 shade
2624 implementation. extendsFrom shade
25+
26+ jarInJar
27+ implementation. extendsFrom jarInJar
2728}
2829
2930dependencies {
3031 // 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'
32+ minecraft ' com.mojang:minecraft:26.1'
33+ implementation ' net.fabricmc:fabric-loader:0.18.4'
3434
3535 Set<String > apiModules = [
3636 " fabric-api-base" ,
@@ -40,17 +40,18 @@ dependencies {
4040
4141 // Add each module as a dependency
4242 apiModules. forEach {
43- modImplementation (fabricApi. module(it, ' 0.141.3+1.21.11 ' ))
43+ implementation (fabricApi. module(it, ' 0.144.0+26.1 ' ))
4444 }
4545
46- include(modImplementation(' me.lucko:fabric-permissions-api:0.6.1' ))
47-
48- modImplementation(' eu.pb4:placeholder-api:2.8.2+1.21.10' )
46+ jarInJar ' me.lucko:fabric-permissions-api:0.7.0'
47+ implementation ' eu.pb4:placeholder-api:3.0.0-beta.2+26.1'
4948
5049 shade project(' :spark-common' )
5150 shade project(' :spark-minecraft' )
5251}
5352
53+ loom. nestJars(tasks. named(" shadowJar" ), configurations. jarInJar)
54+
5455processResources {
5556 inputs. property ' version' , project. version
5657
@@ -72,7 +73,7 @@ license {
7273}
7374
7475shadowJar {
75- archiveFileName = " spark-fabric-${ project.pluginVersion} -dev .jar"
76+ archiveFileName = " spark-fabric-${ project.pluginVersion} .jar"
7677 configurations = [project. configurations. shade]
7778
7879 relocate ' net.kyori.adventure' , ' me.lucko.spark.lib.adventure'
@@ -92,15 +93,6 @@ shadowJar {
9293 }
9394}
9495
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-
10496artifacts {
105- archives remappedShadowJar
97+ archives shadowJar
10698}
0 commit comments