From 277cc833e99897797d76ac6f3189b5f7daf4988c Mon Sep 17 00:00:00 2001 From: Nolij Date: Wed, 10 Jul 2024 18:46:59 -0400 Subject: [PATCH] move mappings file back to sources jar --- build.gradle.kts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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