Package org.gradle.api.artifacts
Interface DirectDependencyMetadata
- All Superinterfaces:
- 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.- Since:
- 4.5
- 
Method SummaryModifier and TypeMethodDescriptionvoidResets 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?Methods inherited from interface org.gradle.api.artifacts.DependencyMetadataattributes, because, getAttributes, getGroup, getModule, getName, getReason, getVersionConstraint, version
- 
Method Details- 
endorseStrictVersionsvoid 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.- Since:
- 6.0
 
- 
doNotEndorseStrictVersionsvoid doNotEndorseStrictVersions()Resets theisEndorsingStrictVersions()state of this dependency.- Since:
- 6.0
 
- 
isEndorsingStrictVersionsboolean isEndorsingStrictVersions()Are theVersionConstraint.getStrictVersion()strict version} dependency constraints of the target module endorsed?- Since:
- 6.0
 
- 
getArtifactSelectorsList<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.- Since:
- 6.3
 
 
-