Ascension/buildscript/final.gradle

19 lines
402 B
Groovy
Raw Normal View History

2021-07-29 03:14:29 +02:00
// Buildscript for loaders & standalone platforms
task copyOutput(type: Copy) {
from(this.shadowJar)
into rootProject.file('jars')
}
shadowJar {
// Don't add -all to the end of the jar name
archiveClassifier = ''
// Include the license in the jar
from(rootProject.file('licenses/GPLv3.txt')) {
rename { fileName -> 'LICENSE.txt' }
}
finalizedBy copyOutput
}