Clean up build script some more
This commit is contained in:
parent
922d0f26e1
commit
9b31616585
14
build.gradle
14
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 {
|
||||
|
|
|
|||
|
|
@ -64,13 +64,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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,13 +78,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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user