diff --git a/fabric/build.gradle b/fabric/build.gradle index 1aae90029..20abfcba1 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -55,6 +55,16 @@ remapJar { classifier null } +task renameJarForPublication(type: Zip, dependsOn: remapJar) { + from remapJar.archiveFile.map { zipTree(it) } + metadataCharset "UTF-8" + archiveExtension = "jar" + destinationDirectory = base.libsDirectory + archiveClassifier = project.name +} + +assemble.dependsOn renameJarForPublication + jar { classifier "dev" } @@ -110,7 +120,7 @@ unifiedPublishing { gameLoaders = ["fabric"] changelog = rootProject.releaseChangelog - mainPublication remapJar + mainPublication renameJarForPublication relations { depends { diff --git a/forge/build.gradle b/forge/build.gradle index cce6cce21..b2ca8e075 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -142,6 +142,16 @@ remapJar { classifier null } +task renameJarForPublication(type: Zip, dependsOn: remapJar) { + from remapJar.archiveFile.map { zipTree(it) } + metadataCharset "UTF-8" + archiveExtension = "jar" + destinationDirectory = base.libsDirectory + archiveClassifier = project.name +} + +assemble.dependsOn renameJarForPublication + jar { classifier "dev" } @@ -219,7 +229,7 @@ unifiedPublishing { gameLoaders = ["forge"] changelog = rootProject.releaseChangelog - mainPublication remapJar + mainPublication renameJarForPublication relations { depends {