Class LayeredSpec
java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LayeredSpec
Encapsulates the configuration for a layered archive.
- Since:
- 2.3.0
- Author:
- Madhura Bhave, Scott Frederick, Phillip Webb
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAnLayeredSpec.IntoLayersSpecthat controls the layers to which application classes and resources belong.static classSpec that controls the dependencies that should be part of a particular layer.static classAnLayeredSpec.IntoLayersSpecthat controls the layers to which dependencies belong.static classSpec that controls the content that should be part of a particular layer.static classBase class for specs that control the layers to which a category of content should belong. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplication(Action<LayeredSpec.ApplicationSpec> action) Customizes theLayeredSpec.ApplicationSpecusing the givenaction.voidCustomizes theLayeredSpec.DependenciesSpecusing the givenaction.Returns theLayeredSpec.ApplicationSpecthat controls the layers to which application classes and resources belong.Returns theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.Returns whether the layers.idx should be included in the archive.Returns whether the layer tools should be included as a dependency in the layered archive.abstract ListProperty<String>Returns the order of the layers in the archive from least to most frequently changing.voidSets theLayeredSpec.ApplicationSpecthat controls the layers to which application classes are resources belong.voidSets theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.
-
Constructor Details
-
LayeredSpec
-
-
Method Details
-
getIncludeLayerTools
Returns whether the layer tools should be included as a dependency in the layered archive.- Returns:
- whether the layer tools should be included
- Since:
- 3.0.0
-
getEnabled
Returns whether the layers.idx should be included in the archive.- Returns:
- whether the layers.idx should be included
- Since:
- 3.0.0
-
getApplication
Returns theLayeredSpec.ApplicationSpecthat controls the layers to which application classes and resources belong.- Returns:
- the application spec
-
setApplication
Sets theLayeredSpec.ApplicationSpecthat controls the layers to which application classes are resources belong.- Parameters:
spec- the application spec
-
application
Customizes theLayeredSpec.ApplicationSpecusing the givenaction.- Parameters:
action- the action
-
getDependencies
Returns theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.- Returns:
- the dependencies spec
-
setDependencies
Sets theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.- Parameters:
spec- the dependencies spec
-
dependencies
Customizes theLayeredSpec.DependenciesSpecusing the givenaction.- Parameters:
action- the action
-
getLayerOrder
Returns the order of the layers in the archive from least to most frequently changing.- Returns:
- the layer order
-