Package org.springframework.boot.maven
Class Layers
java.lang.Object
org.springframework.boot.maven.Layers
Layer configuration options.
- Since:
- 2.3.0
- Author:
- Madhura Bhave
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe location of the layers configuration file.booleanWhether alayers.idxfile should be added to the jar.booleanWhether to include the layer tools jar.voidsetConfiguration(File configuration)
-
Constructor Details
-
Layers
public Layers()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether alayers.idxfile should be added to the jar.- Returns:
- true if a
layers.idxfile should be added.
-
isIncludeLayerTools
public boolean isIncludeLayerTools()Whether to include the layer tools jar.- Returns:
- true if layer tools should be included
-
getConfiguration
The location of the layers configuration file. If no file is provided, a default configuration is used with four layers:application,resources,snapshot-dependenciesanddependencies.- Returns:
- the layers configuration file
-
setConfiguration
-