Ascension/buildscript/final.gradle

19 lines
432 B
Groovy

// Buildscript for loaders & standalone platforms
task copyOutput(type: Copy) {
from(this.shadowJar)
into rootProject.file('jars')
}
shadowJar {
// Adds the commit for snapshots to the end of the file name
archiveClassifier = tasks.jar.archiveClassifier
// Include the license in the jar
from(rootProject.file('LICENSE')) {
rename { fileName -> 'LICENSE.txt' }
}
finalizedBy copyOutput
}