api / org.gradle.kotlin.dsl / org.gradle.api.invocation.Gradle / apply

apply

inline fun <reified T : Plugin<Gradle>> Gradle.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, and be parameterized for a compatible type of this.

Parameters

T - the plugin type.

See Also

PluginAware.apply