diff --git a/build.gradle b/build.gradle index 0ec85c63..ed0758e1 100644 --- a/build.gradle +++ b/build.gradle @@ -190,6 +190,20 @@ configure(subprojects.findAll {it.name == "forge" || it.name == "fabric"}) { apply plugin: 'com.matthewprenger.cursegradle' apply plugin: 'com.modrinth.minotaur' + def copyJarNameConsistent = tasks.register('copyJarNameConsistent', Copy) { + from remapJar // shortcut for createJar.outputs.files + into project.file("build/libs") + rename { name -> "modernfix-" + project.name + "-latest.jar" } + } + + def copyJarToBin = tasks.register('copyJarToBin', Copy) { + from remapJar // shortcut for createJar.outputs.files + into rootProject.file("bin") + mustRunAfter "copyJarNameConsistent" + } + + tasks.build.dependsOn(copyJarToBin, copyJarNameConsistent) + def isBeta = project.version.toString().contains("beta") curseforge { diff --git a/fabric/build.gradle b/fabric/build.gradle index 9b9840d2..0f88e413 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -65,13 +65,6 @@ remapJar { classifier null } -task copyJarToBin(type: Copy) { - from remapJar // shortcut for createJar.outputs.files - into rootProject.file("bin") -} - -tasks.build.dependsOn(copyJarToBin) - jar { classifier "dev" } diff --git a/forge/build.gradle b/forge/build.gradle index 77f315ef..a9641566 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -70,13 +70,6 @@ remapJar { classifier null } -task copyJarToBin(type: Copy) { - from remapJar // shortcut for createJar.outputs.files - into rootProject.file("bin") -} - -tasks.build.dependsOn(copyJarToBin) - jar { classifier "dev" manifest {