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

public static class LayeredSpec.DependenciesIntoLayerSpec extends LayeredSpec.IntoLayerSpec
Spec that controls the dependencies that should be part of a particular layer.
Since:
2.4.0
See Also:
  • Constructor Details

    • DependenciesIntoLayerSpec

      public DependenciesIntoLayerSpec(String intoLayer)
      Creates a new IntoLayerSpec 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.