fun PluginAware.apply(from: Any? = null, plugin: String? = null, to: Any? = null): Unit
Applies the given plugin or script.
from
- a script to apply, evaluated as per Project.file
plugin
- a id of the plugin to apply
to
- the plugin target object or collection of objects, target is self when null
See Also
inline fun <reified T : Plugin<*>> PluginAware.apply(): Unit
Applies the plugin of the given type T. Does nothing if the plugin has already been applied.
The given class should implement the Plugin interface.
See Also
inline fun <reified T : Plugin<*>> PluginAware.apply(to: Any): Unit
Applies the plugin of the given type T to the specified object. Does nothing if the plugin has already been applied.
The given class should implement the Plugin interface.
to
- the plugin target object or collection of objects
See Also