Polish Gradle layer configuration DSL
This commit modifies the DSL for custom layer configuration in the Gradle plugin to avoid duplication of terms that could be confusing. Fixes gh-20563
This commit is contained in:
@@ -10,7 +10,7 @@ bootJar {
|
||||
// tag::layered[]
|
||||
bootJar {
|
||||
layers {
|
||||
layers "dependencies", "snapshot-dependencies", "resources", "application"
|
||||
layersOrder "dependencies", "snapshot-dependencies", "resources", "application"
|
||||
libraries {
|
||||
layerContent("snapshot-dependencies") {
|
||||
coordinates {
|
||||
|
||||
@@ -8,8 +8,7 @@ plugins {
|
||||
// tag::layered[]
|
||||
tasks.getByName<BootJar>("bootJar") {
|
||||
layers {
|
||||
includeLayerTools = false
|
||||
layers("dependencies", "snapshot-dependencies", "resources", "application")
|
||||
layersOrder("dependencies", "snapshot-dependencies", "resources", "application")
|
||||
libraries {
|
||||
layerContent("snapshot-dependencies") {
|
||||
coordinates {
|
||||
|
||||
Reference in New Issue
Block a user