api / org.gradle.kotlin.dsl / org.gradle.api.initialization.Settings / apply

apply

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