From a08bb73ba1b07d3466c78ce6a4e1fb6f477a5d9d Mon Sep 17 00:00:00 2001 From: Username404 Date: Wed, 26 Apr 2023 21:37:28 +0200 Subject: [PATCH] Make the PrepareJarRemapTask depend on shrinkJar Signed-off-by: Username404 --- build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9ebdfc3..d1576ba 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -188,8 +188,10 @@ subprojects { overloadaggressively() mergeinterfacesaggressively() } - withType(net.fabricmc.loom.task.RemapJarTask::class) { + withType(net.fabricmc.loom.task.PrepareJarRemapTask::class) { dependsOn(shrinkJar) + } + withType(net.fabricmc.loom.task.RemapJarTask::class) { val shrinkedJar = shrinkJar.get().outJarFileCollection.singleFile archiveBaseName.set(shadowJar.archiveBaseName) archiveVersion.set("[${rootProject.version}+$mcBase]")