api / org.gradle.api.plugins / ObjectConfigurationAction / type

type

abstract fun type(pluginClass: Class<*>): ObjectConfigurationAction

Adds the plugin implemented by the given class to the target.

The class is expected to either implement Plugin, or extend org.gradle.model.RuleSource. An exception will be thrown if the class is not a valid plugin implementation.

Parameters

pluginClass - the plugin to apply

Return
this