Groovy Documentation

org.gradle.api.artifacts
[Java] Interface ResolvedDependency


public interface ResolvedDependency

Information about a resolved dependency.


Method Summary
Set getAllArtifacts(ResolvedDependency parent)

Returns the parent artifacts of this dependency and its children.

Set getAllModuleArtifacts()

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

Set getArtifacts(ResolvedDependency parent)

Returns the parent artifacts of this dependency.

Set getChildren()

Returns the transitive ResolvedDependency instances of this resolved dependency.

String getConfiguration()

Returns the configuration under which this instance was resolved.

ResolvedModuleVersion getModule()

Returns the module which this resolved dependency belongs to.

Set getModuleArtifacts()

Returns the module artifacts belonging to this ResolvedDependency.

String getModuleGroup()

Returns the module group of the resolved dependency.

String getModuleName()

Returns the module name of the resolved dependency.

String getModuleVersion()

Returns the module version of the resolved dependency.

String getName()

Returns the name of the resolved dependency.

Set getParentArtifacts(ResolvedDependency parent)

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

Set getParents()

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

 

Method Detail

getAllArtifacts

public Set getAllArtifacts(ResolvedDependency parent)
Returns the parent artifacts of this dependency and its children. Never returns null.
throws:
org.gradle.api.InvalidUserDataException If the parent is unknown or null
Parameters:
parent - A parent of the ResolvedDependency. Must not be null.


getAllModuleArtifacts

public Set getAllModuleArtifacts()
Returns the module artifacts belonging to this ResolvedDependency and recursively to its children. Returns never null.
See Also:
getModuleArtifacts()


getArtifacts

public Set getArtifacts(ResolvedDependency parent)
Returns the parent artifacts of this dependency. Never returns null.
throws:
org.gradle.api.InvalidUserDataException If the parent is unknown or null
Parameters:
parent - A parent of the ResolvedDependency. Must not be null.


getChildren

public Set getChildren()
Returns the transitive ResolvedDependency instances of this resolved dependency. Returns never null.


getConfiguration

public String getConfiguration()
Returns the configuration under which this instance was resolved.


getModule

public ResolvedModuleVersion getModule()
Returns the module which this resolved dependency belongs to.
Returns:
The module.


getModuleArtifacts

public Set getModuleArtifacts()
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

public String getModuleGroup()
Returns the module group of the resolved dependency.


getModuleName

public String getModuleName()
Returns the module name of the resolved dependency.


getModuleVersion

public String getModuleVersion()
Returns the module version of the resolved dependency.


getName

public String getName()
Returns the name of the resolved dependency.


getParentArtifacts

public Set getParentArtifacts(ResolvedDependency parent)
Returns the artifacts belonging to this ResolvedDependency which it only has for a particular parent. Returns never null.
throws:
org.gradle.api.InvalidUserDataException If the parent is unknown or null
Parameters:
parent - A parent of the ResolvedDependency. Must not be null.


getParents

public Set getParents()
Returns the ResolvedDependency instances that have this instance as a transitive dependency. Returns never null.


 

Gradle API 1.8