api / org.gradle.kotlin.dsl / org.gradle.api.Project / apply

apply

inline fun <reified T : Plugin<Project>> Project.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