mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
[ci-skip] Use shadowJar output as input for paperclip
This commit is contained in:
@@ -42,8 +42,9 @@ internal fun Project.initToothpickTasks() {
|
||||
}
|
||||
|
||||
val paperclip = createPaperclipTask {
|
||||
dependsOn(tasks.getByName("build"))
|
||||
dependsOn(subprojects.map { it.tasks.getByName("build") })
|
||||
val shadowJar = toothpick.serverProject.project.tasks.getByName("shadowJar")
|
||||
dependsOn(shadowJar)
|
||||
inputs.file(shadowJar.outputs.files.singleFile)
|
||||
}
|
||||
|
||||
val applyPatches = createApplyPatchesTask {
|
||||
|
||||
@@ -19,9 +19,7 @@ internal fun Project.createPaperclipTask(
|
||||
val paperclipDir = workDir.resolve("Paperclip")
|
||||
val vanillaJarPath =
|
||||
workDir.resolve("Minecraft/${toothpick.minecraftVersion}/${toothpick.minecraftVersion}.jar").absolutePath
|
||||
val patchedJarPath = toothpick.serverProject.projectDir.resolve(
|
||||
"build/libs/${toothpick.forkNameLowercase}-server-$version.jar"
|
||||
).absolutePath
|
||||
val patchedJarPath = inputs.files.singleFile.absolutePath
|
||||
logger.lifecycle(">>> Building paperclip")
|
||||
val paperclipCmd = arrayListOf(
|
||||
"mvn", "clean", "package",
|
||||
|
||||
Reference in New Issue
Block a user