Make the PrepareJarRemapTask depend on shrinkJar

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2023-04-26 21:37:28 +02:00
parent 6af2cb658d
commit a08bb73ba1
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 1 deletions

View File

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