api / org.gradle.api.artifacts / ResolvedDependency

ResolvedDependency

interface ResolvedDependency

Information about a resolved dependency.

Functions

getAllArtifacts

abstract fun getAllArtifacts(parent: ResolvedDependency): MutableSet<ResolvedArtifact>

Returns the parent artifacts of this dependency and its children. Never returns null.

getAllModuleArtifacts

abstract fun getAllModuleArtifacts(): MutableSet<ResolvedArtifact>

Returns the module artifacts belonging to this ResolvedDependency and recursively to its children. Returns never null.

getArtifacts

abstract fun getArtifacts(parent: ResolvedDependency): MutableSet<ResolvedArtifact>

Returns the parent artifacts of this dependency. Never returns null.

getChildren

abstract fun getChildren(): MutableSet<ResolvedDependency>

Returns the transitive ResolvedDependency instances of this resolved dependency. Returns never null.

getConfiguration

abstract fun getConfiguration(): String

Returns the configuration under which this instance was resolved.

getModule

abstract fun getModule(): ResolvedModuleVersion

Returns the module which this resolved dependency belongs to.

getModuleArtifacts

abstract fun getModuleArtifacts(): MutableSet<ResolvedArtifact>

Returns the module artifacts belonging to this ResolvedDependency. A module artifact is an artifact that belongs to a ResolvedDependency independent of a particular parent. Returns never null.

getModuleGroup

abstract fun getModuleGroup(): String

Returns the module group of the resolved dependency.

getModuleName

abstract fun getModuleName(): String

Returns the module name of the resolved dependency.

getModuleVersion

abstract fun getModuleVersion(): String

Returns the module version of the resolved dependency.

getName

abstract fun getName(): String

Returns the name of the resolved dependency.

getParentArtifacts

abstract fun getParentArtifacts(parent: ResolvedDependency): MutableSet<ResolvedArtifact>

Returns the artifacts belonging to this ResolvedDependency which it only has for a particular parent. Returns never null.

getParents

abstract fun getParents(): MutableSet<ResolvedDependency>

Returns the ResolvedDependency instances that have this instance as a transitive dependency. Returns never null.