api / org.gradle.kotlin.dsl / org.gradle.api.plugins.PluginAware

Extensions for org.gradle.api.plugins.PluginAware

apply

fun PluginAware.apply(from: Any? = null, plugin: String? = null, to: Any? = null): Unit

Applies the given plugin or script.

fun <T : Plugin<*>> PluginAware.apply(): Unit

Applies the plugin of the given type T. Does nothing if the plugin has already been applied.

fun <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.