mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 09:27: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 {
|
val paperclip = createPaperclipTask {
|
||||||
dependsOn(tasks.getByName("build"))
|
val shadowJar = toothpick.serverProject.project.tasks.getByName("shadowJar")
|
||||||
dependsOn(subprojects.map { it.tasks.getByName("build") })
|
dependsOn(shadowJar)
|
||||||
|
inputs.file(shadowJar.outputs.files.singleFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
val applyPatches = createApplyPatchesTask {
|
val applyPatches = createApplyPatchesTask {
|
||||||
|
|||||||
@@ -19,9 +19,7 @@ internal fun Project.createPaperclipTask(
|
|||||||
val paperclipDir = workDir.resolve("Paperclip")
|
val paperclipDir = workDir.resolve("Paperclip")
|
||||||
val vanillaJarPath =
|
val vanillaJarPath =
|
||||||
workDir.resolve("Minecraft/${toothpick.minecraftVersion}/${toothpick.minecraftVersion}.jar").absolutePath
|
workDir.resolve("Minecraft/${toothpick.minecraftVersion}/${toothpick.minecraftVersion}.jar").absolutePath
|
||||||
val patchedJarPath = toothpick.serverProject.projectDir.resolve(
|
val patchedJarPath = inputs.files.singleFile.absolutePath
|
||||||
"build/libs/${toothpick.forkNameLowercase}-server-$version.jar"
|
|
||||||
).absolutePath
|
|
||||||
logger.lifecycle(">>> Building paperclip")
|
logger.lifecycle(">>> Building paperclip")
|
||||||
val paperclipCmd = arrayListOf(
|
val paperclipCmd = arrayListOf(
|
||||||
"mvn", "clean", "package",
|
"mvn", "clean", "package",
|
||||||
|
|||||||
Reference in New Issue
Block a user