change manifest, add dependson

This commit is contained in:
afischerdev 2021-10-31 11:05:27 +01:00
parent 61e648df0d
commit d383d271ac

View file

@ -13,11 +13,15 @@ application {
attributes "Main-Class": getMainClass(), "Implementation-Version": project.version attributes "Main-Class": getMainClass(), "Implementation-Version": project.version
} }
} }
task fatJar(type: Jar) { task fatJar(type: Jar) {
archiveFileName = 'brouter-' + project.version + '-all.jar' archiveFileName = 'brouter-' + project.version + '-all.jar'
manifest.from jar.manifest manifest {
attributes "Main-Class": getMainClass(), "Implementation-Version": project.version
}
classifier = 'all' classifier = 'all'
dependsOn configurations.runtimeClasspath
from { from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} { } {