Skip to content

Commit

Permalink
Fix paper building
Browse files Browse the repository at this point in the history
Gotta love paperweight devs requiring an unstable beta and make a bunch
of breaking changes that are barely announced
  • Loading branch information
amsam0 committed Jan 5, 2025
1 parent eafd5fd commit b747078
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,20 @@ tasks.shadowJar {

archiveBaseName.set(Properties.archivesBaseName + "-" + project.name)
archiveClassifier.set("")
archiveVersion.set(Properties.pluginVersion)
archiveVersion.set(Properties.pluginVersion + "-shadow")
}

tasks.jar {
archiveBaseName.set(Properties.archivesBaseName + "-" + project.name)
archiveClassifier.set("")
archiveVersion.set(Properties.pluginVersion)
archiveVersion.set(Properties.pluginVersion + "-raw")
}

tasks.reobfJar {
// No idea why we didn't need to do this when we used Groovy, but this is necessary to have the correct jar filename (otherwise it will be paper-{VERSION}.jar)
outputJar.set(layout.buildDirectory.file("libs/${Properties.archivesBaseName + "-" + project.name}-${Properties.pluginVersion}.jar"))

dependsOn(tasks.jar.get())
}

tasks.assemble {
Expand Down

0 comments on commit b747078

Please sign in to comment.