Easier to yoink the build.gradle

This commit is contained in:
CocoTheOwner 2021-08-09 23:01:57 +02:00
parent e45eb7f2be
commit d2d2dc64db

View File

@ -72,15 +72,15 @@ task release(type: proguard.gradle.ProGuardTask) {
verbose()
}
def registerCustomOutputTask(name, path) {
tasks.register('build' + name, Copy) {
def registerCustomOutputTask(dname, path) {
tasks.register('build' + dname, Copy) {
group('development')
outputs.upToDateWhen { false }
dependsOn ':shadowJar'
from(file('build/libs/Iris-' + version + '-all.jar'))
into(file(path))
rename { String fileName ->
fileName.replace('Iris-' + version + '-all.jar', "Iris.jar")
fileName.replace(name + '-' + version + '-all.jar', name + ".jar")
}
}
}