Skip to content

Update Gradle's layer configuration DSL to remove the double usage of layers #20563

@wilkinsona

Description

@wilkinsona

The Gradle DSL for layer configuration currently uses layers twice:

bootJar {
    layers {
        layers "dependencies", "snapshot-dependencies", "application"
        …
    }
}

We'd like to simplify this to avoid the repetition of layers, hopefully to something like the following:

bootJar {
    layers("dependencies", "snapshot-dependencies", "application") {
       …
    }
}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions