29 lines
608 B
Groovy
29 lines
608 B
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.javalin // Pulling in Javalin
|
|
implementation libs.jackson // For JSON serialization of persons
|
|
implementation libs.slf4j // To see some Javalin logging
|
|
}
|
|
|
|
task fatJar(type: Jar) {
|
|
manifest {
|
|
attributes 'Main-Class': 'de.thpeetz.kontor.api.Main'
|
|
}
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
with jar
|
|
}
|
|
|
|
build.dependsOn fatJar
|
|
|
|
wrapper {
|
|
gradleVersion = "9.2.1"
|
|
}
|