Class LayeredSpec.IntoLayerSpec
java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LayeredSpec.IntoLayerSpec
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LayeredSpec.DependenciesIntoLayerSpec
- Enclosing class:
- LayeredSpec
Spec that controls the content that should be part of a particular layer.
- See Also:
-
Constructor Summary
ConstructorDescriptionIntoLayerSpec
(String intoLayer) Creates a newIntoLayerSpec
that will control the content of the given layer. -
Method Summary
-
Constructor Details
-
IntoLayerSpec
Creates a newIntoLayerSpec
that will control the content of the given layer.- Parameters:
intoLayer
- the layer
-
-
Method Details
-
include
Adds patterns that control the content that is included in the layer. If no includes are specified then all content is included. If includes are specified then content must match an inclusion and not match any exclusions to be included.- Parameters:
patterns
- the patterns to be included
-
exclude
Adds patterns that control the content that is excluded from the layer. If no excludes a specified no content is excluded. If exclusions are specified then any content that matches an exclusion will be excluded irrespective of whether it matches an include.- Parameters:
patterns
- the patterns to be excluded
-