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 org.gradle.api.artifacts.dsl.ComponentMetadataHandler.

Since

4.5

Functions

Link copied to clipboard
abstract fun attributes(configureAction: Action<in AttributeContainer>): SELF
Link copied to clipboard
abstract fun because(reason: String): SELF
Link copied to clipboard
Resets the isEndorsingStrictVersions state of this dependency.
Link copied to clipboard
abstract fun endorseStrictVersions()
Endorse version constraints with getStrictVersion strict versions} from the target module.
Link copied to clipboard
Returns additional artifact information associated with the dependency that is used to select artifacts in the targeted module.
Link copied to clipboard
Link copied to clipboard
abstract fun getGroup(): String
Link copied to clipboard
abstract fun getModule(): ModuleIdentifier
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun getReason(): String
Link copied to clipboard
Link copied to clipboard
Are the getStrictVersion strict version} dependency constraints of the target module endorsed?
Link copied to clipboard
abstract fun version(configureAction: Action<in MutableVersionConstraint>): SELF