SELF
- type extending this interfacepublic interface DependencyMetadata<SELF extends DependencyMetadata>
Modifier and Type | Method and Description |
---|---|
SELF |
attributes(Action<? super AttributeContainer> configureAction)
Adjust the attributes of this dependency
|
SELF |
because(String reason)
Adjust the reason why this dependency should be selected.
|
AttributeContainer |
getAttributes()
Returns the attributes of this dependency.
|
String |
getGroup()
Returns the group of the module that is targeted by this dependency or dependency constraint.
|
ModuleIdentifier |
getModule()
The module identifier of the component.
|
String |
getName()
Returns the name of the module that is targeted by this dependency or dependency constraint.
|
String |
getReason()
Returns the reason why this dependency should be selected.
|
VersionConstraint |
getVersionConstraint()
Returns the version of the module that is targeted by this dependency or dependency constraint.
|
SELF |
version(Action<? super MutableVersionConstraint> configureAction)
Adjust the version constraints of the dependency or dependency constraint.
|
String getGroup()
String getName()
VersionConstraint getVersionConstraint()
SELF version(Action<? super MutableVersionConstraint> configureAction)
configureAction
- modify version details@Incubating @Nullable String getReason()
@Incubating SELF because(String reason)
reason
- modified reason@Incubating AttributeContainer getAttributes()
@Incubating SELF attributes(Action<? super AttributeContainer> configureAction)
@Incubating ModuleIdentifier getModule()
getGroup()
and getName()
.