@groovy.transform.CompileStatic class GradleProjectExtension extends Object
Extension for simplifying some Gradle project configuration.
| Constructor and description |
|---|
GradleProjectExtension
(Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addGradleApiAttribute()Uses the minGradleVersion property to set the attribute. |
|
void |
addGradleApiAttribute(Object apiVer)Sets the Gradle API attribute on the outgoing variant. |
|
void |
setCcCompatible(boolean flag)Sets the configuration cache feature flag. |
|
void |
setIsolatedProjectCompatible(boolean flag)Sets the isolated project feature flag. |
|
void |
tags(Object[] moreTags)Tags that will be added to add plugins in the (sub)project. |
|
void |
withLifeCycles()Adds the lifecycles plugin to the compilation classpath. |
Uses the minGradleVersion property to set the attribute.
Sets the Gradle API attribute on the outgoing variant.
apiVer - Minimum Gradle API version. ANything that converts to a string will do.Sets the configuration cache feature flag.
flag - true if this project's plugins support configuration cache.Sets the isolated project feature flag.
flag - true if this project's plugins support configuration cache.Tags that will be added to add plugins in the (sub)project.
moreTags - Lazy-evaluated list of tagsAdds the lifecycles plugin to the compilation classpath.