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.

constraints

abstract fun constraints(configureAction: Action<in DependencyConstraintHandler>)(source)

Configures dependency constraint for this project.

This method executes the given action against the org.gradle.api.artifacts.dsl.DependencyConstraintHandler for this project.

Since

4.5

Parameters

configureAction

the action to use to configure module metadata