apply
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, and be parameterized for a compatible type of this
.
Parameters
the plugin type.
See also
Applies the given plugin or script.
Parameters
a script to apply, evaluated as per Project.file
a id of the plugin to apply
the plugin target object or collection of objects, target is self when null
See also
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.
Parameters
the plugin type.
See also
Specifies whether the plugin should be applied to the current project. Otherwise it is only put on the project's classpath.
Infix version of PluginDependencySpec.apply.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.plugins.PluginContainer.apply.
See also
Kotlin extension function for org.gradle.api.Script.apply.
See also
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.plugins.PluginManager.apply.
Since
2.3
See also
Kotlin extension function for org.gradle.api.plugins.PluginAware.apply.