Package org.gradle.api.artifacts
Schnittstelle DependencyMetadata<SELF extends DependencyMetadata>
- Typparameter:
SELF- type extending this interface
- Alle bekannten Unterschnittstellen:
DependencyConstraintMetadata,DirectDependencyMetadata
public interface DependencyMetadata<SELF extends DependencyMetadata>
Describes a metadata about a dependency - direct dependency or dependency constraint - declared in a resolved component's metadata.
- Seit:
- 4.4
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungattributes(Action<? super AttributeContainer> configureAction) Adjust the attributes of this dependencyAdjust the reason why this dependency should be selected.Returns the attributes of this dependency.getGroup()Returns the group of the module that is targeted by this dependency or dependency constraint.The module identifier of the component.getName()Returns the name of the module that is targeted by this dependency or dependency constraint.Returns the reason why this dependency should be selected.Returns the version of the module that is targeted by this dependency or dependency constraint.version(Action<? super MutableVersionConstraint> configureAction) Adjust the version constraints of the dependency or dependency constraint.
-
Methodendetails
-
getGroup
String getGroup()Returns the group of the module that is targeted by this dependency or dependency constraint. The group allows the definition of modules of the same name in different organizations or contexts. -
getName
String getName()Returns the name of the module that is targeted by this dependency or dependency constraint. -
getVersionConstraint
VersionConstraint getVersionConstraint()Returns the version of the module that is targeted by this dependency or dependency constraint. which usually expresses what API level of the module you are compatible with.- Seit:
- 4.5
-
version
Adjust the version constraints of the dependency or dependency constraint.- Parameter:
configureAction- modify version details- Seit:
- 4.5
-
getReason
Returns the reason why this dependency should be selected.- Gibt zurück:
- the reason, or null if no reason is found in metadata.
- Seit:
- 4.6
-
because
Adjust the reason why this dependency should be selected.- Parameter:
reason- modified reason- Seit:
- 4.6
-
getAttributes
AttributeContainer getAttributes()Returns the attributes of this dependency.- Gibt zurück:
- the attributes of this dependency
- Seit:
- 4.8
-
attributes
Adjust the attributes of this dependency- Seit:
- 4.8
-
getModule
ModuleIdentifier getModule()The module identifier of the component. Returns the same information asgetGroup()andgetName().- Gibt zurück:
- the module identifier
- Seit:
- 4.9
-