ObjectConfigurationAction

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

Functions

Link copied to clipboard
abstract fun from(script: Any): ObjectConfigurationAction
Adds a script to use to configure the target objects.
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.
Link copied to clipboard

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.

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

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