gradle
8.2.1
Java API
gradle
/
org.gradle.api.artifacts
/
DependencyConstraint
Dependency
Constraint
Java API
interface
DependencyConstraint
:
ModuleVersionSelector
,
HasConfigurableAttributes
<
SELF
>
Represents a constraints over all, including transitive, dependencies.
Members
Functions
attributes
Link copied to clipboard
Java API
abstract
fun
attributes
(
configureAction
:
Action
<
out
Any
>
)
:
DependencyConstraint
Mutates the attributes of this constraint.
because
Link copied to clipboard
Java API
abstract
fun
because
(
@
Nullable
reason
:
String
)
Sets the reason why this dependency constraint should be used.
get
Attributes
Link copied to clipboard
Java API
abstract
fun
getAttributes
(
)
:
AttributeContainer
Returns the attributes for this constraint.
get
Group
Link copied to clipboard
Java API
abstract
fun
getGroup
(
)
:
String
get
Module
Link copied to clipboard
Java API
abstract
fun
getModule
(
)
:
ModuleIdentifier
get
Name
Link copied to clipboard
Java API
abstract
fun
getName
(
)
:
String
get
Reason
Link copied to clipboard
Java API
@
Nullable
abstract
fun
getReason
(
)
:
String
Returns a reason why this dependency constraint should be used, in particular with regards to its version.
get
Version
Link copied to clipboard
Java API
abstract
fun
getVersion
(
)
:
String
get
Version
Constraint
Link copied to clipboard
Java API
abstract
fun
getVersionConstraint
(
)
:
VersionConstraint
Returns the version constraint to be used during selection.
matches
Strictly
Link copied to clipboard
Java API
abstract
fun
matchesStrictly
(
identifier
:
ModuleVersionIdentifier
)
:
Boolean
version
Link copied to clipboard
Java API
abstract
fun
version
(
configureAction
:
Action
<
out
Any
>
)
Configures the version constraint for this dependency constraint.