[BUG] Fix paper jar not working on 1.21.4

This commit is contained in:
2024-12-10 19:06:59 +02:00
parent c09338abd0
commit 864baeb6c5
7 changed files with 49 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@@ -1,3 +1,5 @@
import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
plugins {
id "io.papermc.paperweight.userdev" version "1.7.3"
id "xyz.jpenilla.run-paper" version "2.3.0"
@@ -10,6 +12,8 @@ origami {
excludedResources = ["pack.mcmeta", "craterlib.mixins.json"]
}
paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.getMOJANG_PRODUCTION()
dependencies {
paperweight.paperDevBundle("${minecraft_version}-R0.1-SNAPSHOT")
@@ -55,10 +59,6 @@ processResources {
compileTestJava.enabled = false
tasks.assemble {
dependsOn(tasks.reobfJar)
}
publisher {
apiKeys {
nightbloom(System.getenv("PLATFORM_KEY"))
@@ -71,8 +71,9 @@ publisher {
setDisplayName("[Paper 1.21.3] CraterLib - ${project.version}")
setGameVersions("1.21.3")
setLoaders("paper")
setArtifact(reobfJar.outputJar)
setArtifact(shadowJar)
}
publishModrinth.dependsOn(reobfJar)
publishNightbloom.dependsOn(reobfJar)
publishModrinth.dependsOn(shadowJar)
publishNightbloom.dependsOn(shadowJar)
build.dependsOn(shadowJar)

View File

@@ -0,0 +1,41 @@
--- a/Paper/build.gradle
+++ b/Paper/build.gradle
@@ -1,3 +1,5 @@
+import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
+
plugins {
id "io.papermc.paperweight.userdev" version "1.7.3"
id "xyz.jpenilla.run-paper" version "2.3.0"
@@ -10,6 +12,8 @@
excludedResources = ["pack.mcmeta", "craterlib.mixins.json"]
}
+paperweight.reobfArtifactConfiguration = ReobfArtifactConfiguration.getMOJANG_PRODUCTION()
+
dependencies {
paperweight.paperDevBundle("${minecraft_version}-R0.1-SNAPSHOT")
@@ -55,10 +59,6 @@
compileTestJava.enabled = false
-tasks.assemble {
- dependsOn(tasks.reobfJar)
-}
-
publisher {
apiKeys {
nightbloom(System.getenv("PLATFORM_KEY"))
@@ -71,8 +71,9 @@
setDisplayName("[Paper 1.21.3] CraterLib - ${project.version}")
setGameVersions("1.21.3")
setLoaders("paper")
- setArtifact(reobfJar.outputJar)
+ setArtifact(shadowJar)
}
-publishModrinth.dependsOn(reobfJar)
-publishNightbloom.dependsOn(reobfJar)
+publishModrinth.dependsOn(shadowJar)
+publishNightbloom.dependsOn(shadowJar)
+build.dependsOn(shadowJar)