public class LayeredSpec
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LayeredSpec.ApplicationSpec
An
LayeredSpec.IntoLayersSpec that controls the layers to which application classes and
resources belong. |
static class |
LayeredSpec.DependenciesIntoLayerSpec
Spec that controls the dependencies that should be part of a particular layer.
|
static class |
LayeredSpec.DependenciesSpec
An
LayeredSpec.IntoLayersSpec that controls the layers to which dependencies belong. |
static class |
LayeredSpec.IntoLayerSpec
Spec that controls the content that should be part of a particular layer.
|
static class |
LayeredSpec.IntoLayersSpec
Base class for specs that control the layers to which a category of content should
belong.
|
Constructor and Description |
---|
LayeredSpec() |
Modifier and Type | Method and Description |
---|---|
void |
application(org.gradle.api.Action<LayeredSpec.ApplicationSpec> action)
Customizes the
LayeredSpec.ApplicationSpec using the given action . |
void |
application(groovy.lang.Closure<?> closure)
Customizes the
LayeredSpec.ApplicationSpec using the given closure . |
void |
dependencies(org.gradle.api.Action<LayeredSpec.DependenciesSpec> action)
Customizes the
LayeredSpec.DependenciesSpec using the given action . |
void |
dependencies(groovy.lang.Closure<?> closure)
Customizes the
LayeredSpec.DependenciesSpec using the given closure . |
LayeredSpec.ApplicationSpec |
getApplication()
Returns the
LayeredSpec.ApplicationSpec that controls the layers to which application
classes and resources belong. |
LayeredSpec.DependenciesSpec |
getDependencies()
Returns the
LayeredSpec.DependenciesSpec that controls the layers to which dependencies
belong. |
java.util.List<java.lang.String> |
getLayerOrder()
Returns the order of the layers in the jar from least to most frequently changing.
|
boolean |
isEnabled()
Returns whether the layers.idx should be included in the jar.
|
boolean |
isIncludeLayerTools()
Returns whether the layer tools should be included as a dependency in the layered
jar.
|
void |
setApplication(LayeredSpec.ApplicationSpec spec)
Sets the
LayeredSpec.ApplicationSpec that controls the layers to which application
classes are resources belong. |
void |
setDependencies(LayeredSpec.DependenciesSpec spec)
Sets the
LayeredSpec.DependenciesSpec that controls the layers to which dependencies
belong. |
void |
setEnabled(boolean enabled)
Sets whether the layers.idx should be included in the jar.
|
void |
setIncludeLayerTools(boolean includeLayerTools)
Sets whether the layer tools should be included as a dependency in the layered jar.
|
void |
setLayerOrder(java.util.List<java.lang.String> layerOrder)
Sets to order of the layers in the jar from least to most frequently changing.
|
void |
setLayerOrder(java.lang.String... layerOrder)
Sets to order of the layers in the jar from least to most frequently changing.
|
@Input public boolean isIncludeLayerTools()
public void setIncludeLayerTools(boolean includeLayerTools)
includeLayerTools
- true
if the layer tools should be included,
otherwise false
@Input public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true
layers.idx should be included in the jar, otherwise
false
@Input public LayeredSpec.ApplicationSpec getApplication()
LayeredSpec.ApplicationSpec
that controls the layers to which application
classes and resources belong.public void setApplication(LayeredSpec.ApplicationSpec spec)
LayeredSpec.ApplicationSpec
that controls the layers to which application
classes are resources belong.spec
- the application specpublic void application(org.gradle.api.Action<LayeredSpec.ApplicationSpec> action)
LayeredSpec.ApplicationSpec
using the given action
.action
- the actionpublic void application(groovy.lang.Closure<?> closure)
LayeredSpec.ApplicationSpec
using the given closure
.closure
- the closure@Input public LayeredSpec.DependenciesSpec getDependencies()
LayeredSpec.DependenciesSpec
that controls the layers to which dependencies
belong.public void setDependencies(LayeredSpec.DependenciesSpec spec)
LayeredSpec.DependenciesSpec
that controls the layers to which dependencies
belong.spec
- the dependencies specpublic void dependencies(org.gradle.api.Action<LayeredSpec.DependenciesSpec> action)
LayeredSpec.DependenciesSpec
using the given action
.action
- the actionpublic void dependencies(groovy.lang.Closure<?> closure)
LayeredSpec.DependenciesSpec
using the given closure
.closure
- the closure@Input public java.util.List<java.lang.String> getLayerOrder()
public void setLayerOrder(java.lang.String... layerOrder)
layerOrder
- the layer orderpublic void setLayerOrder(java.util.List<java.lang.String> layerOrder)
layerOrder
- the layer order