abstract class AssetPipelineExtension extends java.lang.Object implements java.io.Serializable
Allows configuration of the Gradle plugin
| Modifiers | Name | Description |
|---|---|---|
static class |
AssetPipelineExtension.TaskConfiguration |
A task owns its nested configuration, but shares the three project-wide wiring properties with the extension. |
| Type | Name and description |
|---|---|
org.gradle.api.file.DirectoryProperty |
assetsPath |
org.gradle.api.provider.MapProperty<java.lang.String, java.lang.Object> |
configOptions |
org.gradle.api.provider.Property<java.lang.Boolean> |
developmentRuntimeWhether the compiled assets go into the archives rather than the processed resources. |
org.gradle.api.provider.Property<java.lang.Boolean> |
enableDigests |
org.gradle.api.provider.Property<java.lang.Boolean> |
enableGzip |
org.gradle.api.provider.Property<java.lang.Boolean> |
enableSourceMaps |
org.gradle.api.provider.Property<java.lang.Boolean> |
excludeWebjarsByDefault |
org.gradle.api.provider.ListProperty<java.lang.String> |
excludes |
org.gradle.api.provider.ListProperty<java.lang.String> |
excludesGzip |
org.gradle.api.tasks.compile.GroovyForkOptions |
forkOptions |
org.gradle.api.provider.ListProperty<java.lang.String> |
includes |
org.gradle.api.provider.Property<java.lang.String> |
jarTaskNameThe archive task that receives the compiled assets, besides the standard ones. |
org.gradle.api.provider.Property<java.lang.Integer> |
maxThreads |
org.gradle.api.provider.Property<java.lang.Boolean> |
minifyCss |
org.gradle.api.provider.Property<java.lang.Boolean> |
minifyJs |
org.gradle.api.provider.MapProperty<java.lang.String, java.lang.Object> |
minifyOptions |
org.gradle.api.provider.Property<java.lang.Boolean> |
packagePluginWhether the project is a plugin whose assets are packaged into its jar rather than compiled. |
org.gradle.api.file.ConfigurableFileCollection |
resolvers |
org.gradle.api.provider.Property<java.lang.Boolean> |
skipNonDigests |
org.gradle.api.provider.Property<java.lang.Boolean> |
verbose |
| Constructor and description |
|---|
AssetPipelineExtension(org.gradle.api.model.ObjectFactory objects, org.gradle.api.Project project)
|
protected AssetPipelineExtension(org.gradle.api.model.ObjectFactory objects, org.gradle.api.Project project, AssetPipelineExtension extension) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
from(java.lang.String resolverPath)Legacy helper method to maintain behavior from previous asset pipeline versions |
|
java.util.List<java.lang.String> |
getEffectiveExcludes()Returns the effective excludes list, automatically adding 'webjars/**' if excludeWebjarsByDefault is enabled. |
|
org.gradle.api.tasks.compile.GroovyForkOptions |
getForkOptions()The options of the JVM the assetCompile task forks to compile the assets. |
|
void |
setForkOptions(org.gradle.api.tasks.compile.GroovyForkOptions forkOptions) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Whether the compiled assets go into the archives rather than the processed resources. Read from the
assets extension; setting it through a task's configuration also changes the extension.
The archive task that receives the compiled assets, besides the standard ones. Read from the assets
extension; setting it through a task's configuration also changes the extension.
Whether the project is a plugin whose assets are packaged into its jar rather than compiled. Read from the
assets extension; setting it through a task's configuration also changes the extension.
objects - the object factory of the projectproject - the project, only read here: the extension keeps no reference to it, since the configuration
cache stores the asset tasks' copies of the extensionLegacy helper method to maintain behavior from previous asset pipeline versions
resolverPath - the path to find the resolverReturns the effective excludes list, automatically adding 'webjars/**' if excludeWebjarsByDefault is enabled.
The options of the JVM the assetCompile task forks to compile the assets. A task that forks takes a copy
of the assets extension's options when they are first read, which Gradle does once the build is
configured. Changing a task's options only changes that task.
Groovy Documentation