DependencyConstraint

Represents a constraints over all, including transitive, dependencies.

Since

4.5

Functions

Link copied to clipboard
abstract fun attributes(configureAction: Action<in AttributeContainer>): DependencyConstraint
Mutates the attributes of this constraint.
Link copied to clipboard
abstract fun because(@Nullable reason: String)
Sets the reason why this dependency constraint should be used.
Link copied to clipboard
Returns the attributes for this constraint.
Link copied to clipboard
abstract fun getGroup(): String
Link copied to clipboard
abstract fun getModule(): ModuleIdentifier
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
@Nullable
abstract fun getReason(): String
Returns a reason why this dependency constraint should be used, in particular with regards to its version.
Link copied to clipboard
abstract fun getVersion(): String
Link copied to clipboard
Returns the version constraint to be used during selection.
Link copied to clipboard
Link copied to clipboard
abstract fun version(configureAction: Action<in MutableVersionConstraint>)
Configures the version constraint for this dependency constraint.