Package org.gradle.api.artifacts
Schnittstelle DirectDependencyMetadata
- Alle Superschnittstellen:
DependencyMetadata<DirectDependencyMetadata>
Describes a dependency declared in a resolved component's metadata, which typically originates from
a component descriptor (Gradle metadata file, Ivy file, Maven POM). This interface can be used to adjust
a dependency's properties via metadata rules (see
ComponentMetadataHandler.- Seit:
- 4.5
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidResets theisEndorsingStrictVersions()state of this dependency.voidEndorse version constraints withVersionConstraint.getStrictVersion()strict versions} from the target module.Returns additional artifact information associated with the dependency that is used to select artifacts in the targeted module.booleanAre theVersionConstraint.getStrictVersion()strict version} dependency constraints of the target module endorsed?Von Schnittstelle geerbte Methoden org.gradle.api.artifacts.DependencyMetadata
attributes, because, getAttributes, getGroup, getModule, getName, getReason, getVersionConstraint, version
-
Methodendetails
-
endorseStrictVersions
void endorseStrictVersions()Endorse version constraints withVersionConstraint.getStrictVersion()strict versions} from the target module. Endorsing strict versions of another module/platform means that all strict versions will be interpreted during dependency resolution as if they were defined by the endorsing module itself.- Seit:
- 6.0
-
doNotEndorseStrictVersions
void doNotEndorseStrictVersions()Resets theisEndorsingStrictVersions()state of this dependency.- Seit:
- 6.0
-
isEndorsingStrictVersions
boolean isEndorsingStrictVersions()Are theVersionConstraint.getStrictVersion()strict version} dependency constraints of the target module endorsed?- Seit:
- 6.0
-
getArtifactSelectors
List<DependencyArtifact> getArtifactSelectors()Returns additional artifact information associated with the dependency that is used to select artifacts in the targeted module. For example, a classifier or type defined in POM metadata or a complete artifact name defined in Ivy metadata.- Seit:
- 6.3
-