gradle
8.3

# add

inline fun <T : Any> CompatibilityRuleChain<T>.add(rule: KClass<out AttributeCompatibilityRule<T>>)
inline fun <T : Any> CompatibilityRuleChain<T>.add(rule: KClass<out AttributeCompatibilityRule<T>>, configureAction: Action<in ActionConfiguration>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.attributes.CompatibilityRuleChain.add.

#### See also

CompatibilityRuleChain.add

inline fun <T : Any> DisambiguationRuleChain<T>.add(rule: KClass<out AttributeDisambiguationRule<T>>)
inline fun <T : Any> DisambiguationRuleChain<T>.add(rule: KClass<out AttributeDisambiguationRule<T>>, configureAction: Action<in ActionConfiguration>)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.attributes.DisambiguationRuleChain.add.

#### See also

DisambiguationRuleChain.add

inline fun <T : Any> ExtensionContainer.add(publicType: KClass<T>, name: String, extension: T)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.plugins.ExtensionContainer.add.

#### See also

ExtensionContainer.add

inline fun DependencyHandler.add(configuration: String, dependencyNotation: String, dependencyConfiguration: ExternalModuleDependency.() -> Unit): ExternalModuleDependency

Adds a dependency to the given configuration, and configures the dependency using the given expression.

#### Return

The dependency.

#### Parameters

configuration

The name of the configuration.

dependencyNotation

The dependency notation.

dependencyConfiguration

The expression to use to configure the dependency.

inline fun <T : ModuleDependency> DependencyHandler.add(configuration: String, dependency: T, dependencyConfiguration: T.() -> Unit): T

Adds a dependency to the given configuration, and configures the dependency using the given expression.

#### Return

The dependency.

#### Parameters

configuration

The name of the configuration.

dependency

The dependency.

dependencyConfiguration

The expression to use to configure the dependency.

inline fun <T : Any> ExtensionContainer.add(name: String, extension: T)

Adds a new extension to this container.

#### Since

5.0

#### Parameters

T

the public type of the added extension

name

the name of the extension

extension

the extension instance

#### See also

ExtensionContainer.add

#### Throws

IllegalArgumentException

When an extension with the given name already exists.