类 LayeredSpec
java.lang.Object
org.springframework.boot.gradle.tasks.bundling.LayeredSpec
Encapsulates the configuration for a layered archive.
- 从以下版本开始:
- 2.3.0
- 作者:
- Madhura Bhave, Scott Frederick, Phillip Webb
-
嵌套类概要
嵌套类修饰符和类型类说明static classAnLayeredSpec.IntoLayersSpecthat controls the layers to which application classes and resources belong.static classSpec that controls the dependencies that should be part of a particular layer.static classAnLayeredSpec.IntoLayersSpecthat controls the layers to which dependencies belong.static classSpec that controls the content that should be part of a particular layer.static classBase class for specs that control the layers to which a category of content should belong. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplication(Action<LayeredSpec.ApplicationSpec> action) Customizes theLayeredSpec.ApplicationSpecusing the givenaction.voidCustomizes theLayeredSpec.DependenciesSpecusing the givenaction.Returns theLayeredSpec.ApplicationSpecthat controls the layers to which application classes and resources belong.Returns theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.Returns whether the layers.idx should be included in the archive.已过时, 待删除: 此 API 元素将从以后的版本中删除。abstract ListProperty<String> Returns the order of the layers in the archive from least to most frequently changing.voidSets theLayeredSpec.ApplicationSpecthat controls the layers to which application classes are resources belong.voidSets theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.
-
构造器详细资料
-
LayeredSpec
-
-
方法详细资料
-
getIncludeLayerTools
@Input @Deprecated(since="3.3.0", forRemoval=true) public abstract Property<Boolean> getIncludeLayerTools()已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.3.0 for removal in 3.5.0 in favor ofincludeTools.Returns whether the layer tools should be included as a dependency in the layered archive.- 返回:
- whether the layer tools should be included
- 从以下版本开始:
- 3.0.0
-
getEnabled
Returns whether the layers.idx should be included in the archive.- 返回:
- whether the layers.idx should be included
- 从以下版本开始:
- 3.0.0
-
getApplication
Returns theLayeredSpec.ApplicationSpecthat controls the layers to which application classes and resources belong.- 返回:
- the application spec
-
setApplication
Sets theLayeredSpec.ApplicationSpecthat controls the layers to which application classes are resources belong.- 参数:
spec- the application spec
-
application
Customizes theLayeredSpec.ApplicationSpecusing the givenaction.- 参数:
action- the action
-
getDependencies
Returns theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.- 返回:
- the dependencies spec
-
setDependencies
Sets theLayeredSpec.DependenciesSpecthat controls the layers to which dependencies belong.- 参数:
spec- the dependencies spec
-
dependencies
Customizes theLayeredSpec.DependenciesSpecusing the givenaction.- 参数:
action- the action
-
getLayerOrder
Returns the order of the layers in the archive from least to most frequently changing.- 返回:
- the layer order
-
includeTools.