Polish new layered jar support
This commit is contained in:
@@ -22,7 +22,7 @@ bootJar {
|
||||
}
|
||||
intoLayer("dependencies")
|
||||
}
|
||||
layerOrder "dependencies", "spring-boot-loader", "snapshot-dependencies", "application"
|
||||
layerOrder = ["dependencies", "spring-boot-loader", "snapshot-dependencies", "application"]
|
||||
}
|
||||
}
|
||||
// end::layered[]
|
||||
|
||||
@@ -5,6 +5,10 @@ plugins {
|
||||
id("org.springframework.boot") version "{version}"
|
||||
}
|
||||
|
||||
tasks.getByName<BootJar>("bootJar") {
|
||||
mainClassName = "com.example.ExampleApplication"
|
||||
}
|
||||
|
||||
// tag::layered[]
|
||||
tasks.getByName<BootJar>("bootJar") {
|
||||
layered {
|
||||
@@ -18,9 +22,9 @@ tasks.getByName<BootJar>("bootJar") {
|
||||
intoLayer("snapshot-dependencies") {
|
||||
include("*:*:*SNAPSHOT")
|
||||
}
|
||||
intoLayer("dependencies") {
|
||||
intoLayer("dependencies")
|
||||
}
|
||||
layersOrder("dependencies", "spring-boot-loader", "snapshot-dependencies", "application")
|
||||
layerOrder = listOf("dependencies", "spring-boot-loader", "snapshot-dependencies", "application")
|
||||
}
|
||||
}
|
||||
// end::layered[]
|
||||
|
||||
@@ -9,7 +9,7 @@ bootJar {
|
||||
|
||||
// tag::layered[]
|
||||
bootJar {
|
||||
layers {
|
||||
layered {
|
||||
includeLayerTools = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,8 +11,8 @@ tasks.getByName<BootJar>("bootJar") {
|
||||
|
||||
// tag::layered[]
|
||||
tasks.getByName<BootJar>("bootJar") {
|
||||
layers {
|
||||
includeLayerTools = false
|
||||
layered {
|
||||
isIncludeLayerTools = false
|
||||
}
|
||||
}
|
||||
// end::layered[]
|
||||
|
||||
Reference in New Issue
Block a user