java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LayeredSpec

public class LayeredSpec extends Object
Encapsulates the configuration for a layered archive.
Since:
2.3.0
Author:
Madhura Bhave, Scott Frederick, Phillip Webb
  • Constructor Details

    • LayeredSpec

      @Inject public LayeredSpec(org.gradle.api.model.ObjectFactory objects)
  • Method Details

    • isIncludeLayerTools

      @Input public boolean isIncludeLayerTools()
      Returns whether the layer tools should be included as a dependency in the layered archive.
      Returns:
      whether the layer tools should be included
    • setIncludeLayerTools

      public void setIncludeLayerTools(boolean includeLayerTools)
      Sets whether the layer tools should be included as a dependency in the layered archive.
      Parameters:
      includeLayerTools - true if the layer tools should be included, otherwise false
    • isEnabled

      @Input public boolean isEnabled()
      Returns whether the layers.idx should be included in the archive.
      Returns:
      whether the layers.idx should be included
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets whether the layers.idx should be included in the archive.
      Parameters:
      enabled - true layers.idx should be included in the archive, otherwise false
    • getApplication

      @Input public LayeredSpec.ApplicationSpec getApplication()
      Returns the LayeredSpec.ApplicationSpec that controls the layers to which application classes and resources belong.
      Returns:
      the application spec
    • setApplication

      public void setApplication(LayeredSpec.ApplicationSpec spec)
      Sets the LayeredSpec.ApplicationSpec that controls the layers to which application classes are resources belong.
      Parameters:
      spec - the application spec
    • application

      public void application(org.gradle.api.Action<LayeredSpec.ApplicationSpec> action)
      Customizes the LayeredSpec.ApplicationSpec using the given action.
      Parameters:
      action - the action
    • getDependencies

      @Input public LayeredSpec.DependenciesSpec getDependencies()
      Returns the LayeredSpec.DependenciesSpec that controls the layers to which dependencies belong.
      Returns:
      the dependencies spec
    • setDependencies

      public void setDependencies(LayeredSpec.DependenciesSpec spec)
      Sets the LayeredSpec.DependenciesSpec that controls the layers to which dependencies belong.
      Parameters:
      spec - the dependencies spec
    • dependencies

      public void dependencies(org.gradle.api.Action<LayeredSpec.DependenciesSpec> action)
      Customizes the LayeredSpec.DependenciesSpec using the given action.
      Parameters:
      action - the action
    • getLayerOrder

      @Input public List<String> getLayerOrder()
      Returns the order of the layers in the archive from least to most frequently changing.
      Returns:
      the layer order
    • setLayerOrder

      public void setLayerOrder(String... layerOrder)
      Sets the order of the layers in the archive from least to most frequently changing.
      Parameters:
      layerOrder - the layer order
    • setLayerOrder

      public void setLayerOrder(List<String> layerOrder)
      Sets the order of the layers in the archive from least to most frequently changing.
      Parameters:
      layerOrder - the layer order