# ObjectConfigurationAction

interface ObjectConfigurationAction

An `ObjectConfigurationAction` allows you to apply org.gradle.api.Plugins and scripts to an object or objects.

## Functions

from
Link copied to clipboard
abstract fun from(script: Any): ObjectConfigurationAction
Adds a script to use to configure the target objects.
plugin
Link copied to clipboard
abstract fun plugin(pluginClass: Class<out Plugin>): ObjectConfigurationAction
abstract fun plugin(pluginId: String): ObjectConfigurationAction
Adds a org.gradle.api.Plugin to use to configure the target objects.
plugin
Link copied to clipboard
inline fun <T : Plugin<*>> ObjectConfigurationAction. plugin(): ObjectConfigurationAction?

Adds a Plugin to use to configure the target objects. This method may be called multiple times, to use multiple plugins. Scripts and plugins are applied in the order that they are added.

inline fun ObjectConfigurationAction. plugin(pluginClass: KClass<out Plugin<*>>): ObjectConfigurationAction

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.plugins.ObjectConfigurationAction.plugin.

to
Link copied to clipboard
abstract fun to(targets: Array<Any>): ObjectConfigurationAction
Specifies some target objects to be configured.
type
Link copied to clipboard
abstract fun type(pluginClass: Class<out Any>): ObjectConfigurationAction
Adds the plugin implemented by the given class to the target.
type
Link copied to clipboard
inline fun ObjectConfigurationAction. type(pluginClass: KClass<*>): ObjectConfigurationAction

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.plugins.ObjectConfigurationAction.type.