|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.artifacts.ModuleDependencyorg.gradle.api.artifacts.Dependency
interface ModuleDependency extends Dependency
A ModuleDependency is a org.gradle.api.artifacts.Dependency on a module outside the current project.
A module dependency is an entity. Its key consists of the fields group, name, version, configuration.
Method Summary | |
---|---|
ModuleDependency
|
addArtifact(DependencyArtifact artifact)
Adds an artifact to this dependency. |
ModuleDependency
|
copy()
{ |
ModuleDependency
|
exclude(Map excludeProperties)
Adds an exclude rule to exclude transitive dependencies of this dependency. |
Set
|
getArtifacts()
Returns the artifacts belonging to this dependency. |
java.lang.String
|
getConfiguration()
Returns the configuration of this dependency module (not the configurations this dependency belongs too). |
Set
|
getExcludeRules()
Returns the exclude rules for this dependency. |
boolean
|
isTransitive()
Returns whether this dependency should be resolved including or excluding its transitive dependencies. |
ModuleDependency
|
setTransitive(boolean transitive)
Sets whether this dependency should be resolved including or excluding its transitive dependencies. |
Methods inherited from interface Dependency | |
---|---|
contentEquals, copy, getGroup, getName, getVersion |
Method Detail |
---|
public ModuleDependency addArtifact(DependencyArtifact artifact)
public ModuleDependency copy()
public ModuleDependency exclude(Map excludeProperties)
public Set getArtifacts()
public java.lang.String getConfiguration()
public Set getExcludeRules()
public boolean isTransitive()
public ModuleDependency setTransitive(boolean transitive)
Groovy Documentation