19 lines
416 B
Plaintext
19 lines
416 B
Plaintext
import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|
|
|
plugins {
|
|
java
|
|
id("org.springframework.boot") version "{gradle-project-version}"
|
|
}
|
|
|
|
tasks.named<BootJar>("bootJar") {
|
|
mainClass.set("com.example.ExampleApplication")
|
|
}
|
|
|
|
// tag::launch-script-properties[]
|
|
tasks.named<BootJar>("bootJar") {
|
|
launchScript {
|
|
properties(mapOf("logFilename" to "example-app.log"))
|
|
}
|
|
}
|
|
// end::launch-script-properties[]
|