Basic utilities for Gradle plug-ins.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
PROPERTY_VERSION |
The property name of module versions. |
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
afterEvaluate(org.gradle.api.Project project, groovy.lang.Closure<?> closure) Executes a closure after the project was evaluated only if evaluation was not failed. |
|
static void |
afterPluginEnabled(org.gradle.api.Project project, java.lang.Class<?> pluginType, groovy.lang.Closure<?> closure) Calls a closure after the target plug-in is enabled. |
|
static void |
afterPluginEnabled(org.gradle.api.Project project, java.lang.String pluginId, groovy.lang.Closure<?> closure) Calls a closure after the target plug-in is enabled. |
|
static void |
afterTaskEnabled(org.gradle.api.Project project, java.lang.String taskName, groovy.lang.Closure<?> closure) Calls a closure after the target task is enabled. |
|
static void |
applyParticipants(org.gradle.api.Project project, java.lang.Class<? extends PluginParticipant> type) Finds for services. |
|
static int |
compareGradleVersion(java.lang.String version) Compares the target Gradle version with the current Gradle version. |
<T> |
static T |
deprecateAsakusafwVersion(org.gradle.api.Project project, java.lang.String prefix, T instance) Make modifying asakusafwVersion deprecated. |
<T> |
static org.gradle.api.NamedDomainObjectContainer<T> |
enhanceNamedDomainObjectContainer(org.gradle.api.NamedDomainObjectContainer<T> container) Enhances NamedDomainObjectContainer for enabling property accesses. |
|
static org.gradle.api.file.FileCollection |
getClassesDirs(org.gradle.api.Project project, org.gradle.api.tasks.SourceSetOutput output) Returns a set of class files output directories. |
|
static void |
injectVersionProperty(org.gradle.api.plugins.ExtensionAware container, java.lang.Object version) Injects the version property into the given container. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The property name of module versions.
Executes a closure after the project was evaluated only if evaluation was not failed.
project
- the target projectclosure
- the closureCalls a closure after the target plug-in is enabled.
project
- the current projectpluginType
- the target plug-in classclosure
- the closureCalls a closure after the target plug-in is enabled.
project
- the current projectpluginId
- the target plug-in IDclosure
- the closureCalls a closure after the target task is enabled.
project
- the current projecttaskName
- the target task nameclosure
- the closureFinds for services.
- the service interface typeproject
- the current projectserviceInterface
- the service interfaceloader
- the service class loaderCompares the target Gradle version with the current Gradle version.
version
- the target Gradle version=0
- same, >0
- the current version is newer, <0
- the current version is older Make modifying asakusafwVersion
deprecated.
project
- the current projectprefix
- the instance prefix nameinstance
- the target instance Enhances NamedDomainObjectContainer
for enabling property accesses.
- the element typecontainer
- the target containerReturns a set of class files output directories.
project
- the current projectoutput
- the target output Injects the version
property into the given container.
container
- the target containerversion
- the version value