For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

add

abstract fun add(configurationName: String, dependencyNotation: Any): DependencyConstraint(source)

Adds a dependency constraint to the given configuration.

Since

4.5

Parameters

configurationName

The name of the configuration.

dependencyNotation

The dependency constraint notation


abstract fun add(configurationName: String, dependencyNotation: Any, configureAction: Action<in DependencyConstraint>): DependencyConstraint(source)

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

Since

4.5

Parameters

configurationName

The name of the configuration.

dependencyNotation

The dependency constraint notation

configureAction

The closure to use to configure the dependency constraint.