diff --git a/build.gradle b/build.gradle index ad7e95e0..df66fab5 100644 --- a/build.gradle +++ b/build.gradle @@ -182,6 +182,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 cc09a7ee..bc893c61 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 b4b17f01..8f05d6a4 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 {