Skip to content

Commit

Permalink
chore(1.20.5): Don't reobfuscate jars for paper plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed May 2, 2024
1 parent 9c0445c commit 9d00e2f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (pluginPath != null) {
val dest = copyJar.destPath.orNull ?: pluginPath
val jarName = copyJar.jarName.orNull ?: "${project.name}-${project.version}.jar"

from(findByName("reobfJar") ?: findByName("shadowJar") ?: findByName("jar"))
from(findByName("shadowJar") ?: findByName("jar"))
into(dest)
doLast {
println("Copied to plugin directory $dest")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ val libs = idofrontLibsRef

dependencies {
paperweight.paperDevBundle(libs.findVersion("minecraft").get().toString())
}

tasks {
assemble {
dependsOn(reobfJar)
}
}

paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.MOJANG_PRODUCTION

0 comments on commit 9d00e2f

Please sign in to comment.