Skip to content

Commit

Permalink
move mappings file back to sources jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolij committed Jul 10, 2024
1 parent a9deb0e commit 277cc83
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,13 @@ val sourcesJar = tasks.register<Jar>("sourcesJar") {
rename { "${it}_${"mod_id"()}" }
}

if (releaseChannel.proguard) {
dependsOn(compressJar)
from(compressJar.get().mappingsFile!!) {
rename { "mappings.txt" }
}
}

listOf(
sourceSets,
project(":api").sourceSets,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 277cc83

Please sign in to comment.