add kontor-javalin and change to multistage Dockerfile for Gradle projects #81
@@ -15,3 +15,22 @@ application {
|
|||||||
mainClass = "de.thpeetz.kontor.api.Main"
|
mainClass = "de.thpeetz.kontor.api.Main"
|
||||||
mainModule = "de.thpeetz.kontor.api"
|
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