gradle
8.3

# DependencyConstraintHandlerScope

class DependencyConstraintHandlerScope : DependencyConstraintHandlerDelegate

Receiver for `dependencies.constraints` block providing convenient utilities for configuring dependency constraints.

#### Since

5.0

#### See also

DependencyConstraintHandler

## Types

Companion
Link copied to clipboard
object Companion

## Functions

add
Link copied to clipboard
open override fun add(configurationName: String, dependencyConstraintNotation: Any): DependencyConstraint
open override fun add(configurationName: String, dependencyNotation: Any, configureAction: Action<in DependencyConstraint>): DependencyConstraint
create
Link copied to clipboard
open override fun create(dependencyConstraintNotation: Any): DependencyConstraint
open override fun create(dependencyConstraintNotation: Any, configureAction: Action<in DependencyConstraint>): DependencyConstraint
enforcedPlatform
Link copied to clipboard
open override fun enforcedPlatform(notation: Any): DependencyConstraint
open override fun enforcedPlatform(notation: Any, configureAction: Action<in DependencyConstraint>): DependencyConstraint
invoke
Link copied to clipboard
inline operator fun invoke(configuration: DependencyConstraintHandlerScope.() -> Unit)

Configures the dependency constraints.

invoke
Link copied to clipboard
operator fun DependencyConstraintHandler.invoke(configuration: DependencyConstraintHandlerScope.() -> Unit)

Configures the dependency constraints.

operator fun String.invoke(dependencyConstraintNotation: Any): DependencyConstraint?
@Incubating
operator fun NamedDomainObjectProvider<Configuration>.invoke(dependencyConstraintNotation: Any): DependencyConstraint?
operator fun Configuration.invoke(dependencyConstraintNotation: Any): DependencyConstraint?
operator fun String.invoke(dependencyConstraintNotation: String, configuration: DependencyConstraint.() -> Unit): DependencyConstraint
@Incubating
operator fun NamedDomainObjectProvider<Configuration>.invoke(dependencyConstraintNotation: String, configuration: DependencyConstraint.() -> Unit): DependencyConstraint?
operator fun Configuration.invoke(dependencyConstraintNotation: String, configuration: DependencyConstraint.() -> Unit): DependencyConstraint

Adds a dependency constraint to the given configuration.

## Properties

constraints
Link copied to clipboard
val constraints: DependencyConstraintHandler
delegate
Link copied to clipboard
open val delegate: DependencyConstraintHandler