add
Adds a dependency to the given configuration, and configures the dependency using the given expression.
Return
The dependency.
Parameters
The name of the configuration.
The dependency notation.
The expression to use to configure the dependency.
Adds a dependency to the given configuration, and configures the dependency using the given expression.
Return
The dependency.
Parameters
The name of the configuration.
The dependency.
The expression to use to configure the dependency.
Adds a new extension to this container.
Since
5.0
Parameters
the public type of the added extension
the name of the extension
the extension instance
See also
Throws
When an extension with the given name already exists.
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.attributes.CompatibilityRuleChain.add.
Since
4.0
See also
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.initialization.SharedModelDefaults.add.
Since
8.10
See also
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.plugins.ExtensionContainer.add.
Since
3.5
See also
Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.attributes.DisambiguationRuleChain.add.
Since
4.0