|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface ObjectConfigurationAction
An ObjectConfigurationAction allows you to apply Plugins and scripts to an object or objects.
Method Summary | |
---|---|
ObjectConfigurationAction
|
from(Object script)
Adds a script to use to configure the target objects. |
ObjectConfigurationAction
|
plugin(Class pluginClass)
Adds a Plugin to use to configure the target objects. |
ObjectConfigurationAction
|
plugin(String pluginId)
Adds a Plugin to use to configure the target objects. |
ObjectConfigurationAction
|
to(Object... targets)
|
Method Detail |
---|
public ObjectConfigurationAction from(Object script)
script
- The script. Evaluated as per Project.file. However, note that
a URL can also be used, allowing the script to be fetched using HTTP, for example.
public ObjectConfigurationAction plugin(Class pluginClass)
pluginClass
- The plugin to apply.
public ObjectConfigurationAction plugin(String pluginId)
pluginId
- The id of the plugin to apply.
public ObjectConfigurationAction to(Object... targets)
Specifies some target objects to be configured. Any collections or arrays in the given parameters will be flattened, and the script applied to each object in the result, in the order given. Each call to this method adds some additional target objects.
targets
- The target objects.
Gradle API 1.12