add task fatJar
This commit is contained in:
@@ -15,3 +15,22 @@ application {
|
||||
mainClass = "de.thpeetz.kontor.api.Main"
|
||||
mainModule = "de.thpeetz.kontor.api"
|
||||
}
|
||||
|
||||
task fatJar(type: Jar) {
|
||||
manifest {
|
||||
attributes 'Main-Class': 'de.thpeetz.kontor.api.Main'
|
||||
//attributes (
|
||||
// 'Main-Class': 'de.thpeetz.kontor.api.Main',
|
||||
// 'Main-Module': 'de.thpeetz.kontor.api'
|
||||
//)
|
||||
}
|
||||
//archiveBaseName = 'all-in-one-jar'
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
with jar
|
||||
}
|
||||
|
||||
build.dependsOn fatJar
|
||||
distZip.dependsOn fatJar
|
||||
distTar.dependsOn fatJar
|
||||
startScripts.dependsOn fatJar
|
||||
|
||||
Reference in New Issue
Block a user