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: @Nullable 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
The group of the module.
Link copied to clipboard
abstract fun getModule(): ModuleIdentifier
The module identifier of the component.
Link copied to clipboard
abstract fun getName(): String
The name of the module.
Link copied to clipboard
@Nullable
abstract fun getReason(): @Nullable String
Returns a reason why this dependency constraint should be used, in particular with regards to its version.
Link copied to clipboard
@Nullable
abstract fun getVersion(): @Nullable String
The version of the module.
Link copied to clipboard
Returns the version constraint to be used during selection.
Link copied to clipboard
To match strictly means that the given identifier needs to have equal group, module name and version.
Link copied to clipboard
abstract fun version(configureAction: Action<in MutableVersionConstraint>)
Configures the version constraint for this dependency constraint.