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]")