# 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

## Properties

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

## Functions

add
Link copied to clipboard
open override fun add(configurationName: String, dependencyNotation: Any): DependencyConstraint
open override fun add(configurationName: String, dependencyNotation: Any, configureAction: Action<in DependencyConstraint>): DependencyConstraint
addProvider
Link copied to clipboard
open override fun <T : Any> addProvider(configurationName: String, dependencyNotation: Provider<T>)
open override fun <T : Any> addProvider(configurationName: String, dependencyNotation: Provider<T>, configureAction: Action<in DependencyConstraint>)
addProviderConvertible
Link copied to clipboard
open override fun <T : Any> addProviderConvertible(configurationName: String, dependencyNotation: ProviderConvertible<T>)
open override fun <T : Any> addProviderConvertible(configurationName: String, dependencyNotation: ProviderConvertible<T>, configureAction: Action<in 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.

operator fun String.invoke(dependencyConstraintNotation: Any): DependencyConstraint
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
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.

@JvmName(name = "invokeDependencyScope")
@Incubating
operator fun NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(dependencyConstraintNotation: Any): DependencyConstraint
@JvmName(name = "invokeDependencyScope")
@Incubating
operator fun NamedDomainObjectProvider<DependencyScopeConfiguration>.invoke(dependencyConstraintNotation: String, configuration: DependencyConstraint.() -> Unit): DependencyConstraint

Adds a dependency constraint to the given DependencyScopeConfiguration.

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

Configures the dependency constraints.