diff --git a/build.gradle.kts b/build.gradle.kts index 469e5c4..36b31a5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -353,6 +353,13 @@ val sourcesJar = tasks.register("sourcesJar") { rename { "${it}_${"mod_id"()}" } } + if (releaseChannel.proguard) { + dependsOn(compressJar) + from(compressJar.get().mappingsFile!!) { + rename { "mappings.txt" } + } + } + listOf( sourceSets, project(":api").sourceSets, @@ -470,9 +477,6 @@ afterEvaluate { publishMods { file = compressJar.get().outputJar additionalFiles.from(sourcesJar.get().archiveFile) - if (releaseChannel.proguard) - additionalFiles.from(compressJar.get().mappingsFile) - type = releaseChannel.releaseType ?: ALPHA displayName = Zume.version version = Zume.version