Class Layers

java.lang.Object
org.springframework.boot.maven.Layers

public class Layers extends Object
Layer configuration options.
Since:
2.3.0
Author:
Madhura Bhave
  • Constructor Details

    • Layers

      public Layers()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Whether a layers.idx file should be added to the jar.
      Returns:
      true if a layers.idx file should be added.
    • isIncludeLayerTools

      @Deprecated(since="3.3.0", forRemoval=true) public boolean isIncludeLayerTools()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 3.3.0 for removal in 3.5.0 in favor of includeTools.
      Whether to include the layer tools jar.
      Returns:
      true if layer tools should be included
    • getConfiguration

      public File getConfiguration()
      The location of the layers configuration file. If no file is provided, a default configuration is used with four layers: application, resources, snapshot-dependencies and dependencies.
      Returns:
      the layers configuration file
    • setConfiguration

      public void setConfiguration(File configuration)