Class LayeredSpec.DependenciesIntoLayerSpec
java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LayeredSpec.IntoLayerSpec
org.springframework.boot.gradle.tasks.bundling.LayeredSpec.DependenciesIntoLayerSpec
- All Implemented Interfaces:
Serializable
- Enclosing class:
- LayeredSpec
Spec that controls the dependencies that should be part of a particular layer.
- Since:
- 2.4.0
- See Also:
-
Constructor Summary
ConstructorDescriptionDependenciesIntoLayerSpec
(String intoLayer) Creates a newIntoLayerSpec
that will control the content of the given layer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configures the layer to exclude project dependencies.void
Configures the layer to include project dependencies.Methods inherited from class org.springframework.boot.gradle.tasks.bundling.LayeredSpec.IntoLayerSpec
exclude, include
-
Constructor Details
-
DependenciesIntoLayerSpec
Creates a newIntoLayerSpec
that will control the content of the given layer.- Parameters:
intoLayer
- the layer
-
-
Method Details
-
includeProjectDependencies
public void includeProjectDependencies()Configures the layer to include project dependencies. 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. -
excludeProjectDependencies
public void excludeProjectDependencies()Configures the layer to exclude project dependencies. 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.
-