public class ModuleDependencySpec extends DependencySpec
| Constructor and Description |
|---|
ModuleDependencySpec(java.lang.String pConfiguration,
java.lang.String pGroup,
java.lang.String pName,
java.lang.String pVersion)
Create a new
ModuleDependencySpec. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTo(org.gradle.api.Project pProject)
Add this dependency to a project.
|
java.lang.String |
getClassifier() |
java.lang.String |
getExtension() |
java.lang.String |
getGroup() |
java.lang.String |
getName() |
java.lang.String |
getVersion() |
protected boolean |
hasNonDefaultAttribute()
Check if this dependency has at least one attribute with a non-default value.
|
boolean |
isChanging() |
boolean |
isForce() |
void |
prettyPrint(GradlePrettyPrinter pPrinter)
Pretty print this instance with a
GradlePrettyPrinter on a format suitable for build
scripts. |
protected void |
printClosureBody(GradlePrettyPrinter pPrinter)
Pretty print the body of a closure that sets the values of the dependency's non-default
attributes.
|
void |
setChanging(boolean pChanging) |
void |
setClassifier(java.lang.String pClassifier) |
void |
setExtension(java.lang.String pExtension) |
void |
setForce(boolean pForce) |
java.lang.String |
toDependencyNotation()
Get the string notation for this dependency.
|
addArtifact, addArtifact, addExclusion, addExclusion, forEachArtifact, forEachExclusion, getConfiguration, getNumArtifacts, getNumExclusions, isTransitive, prettyPrintDependencies, setConfiguration, setTransitive, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitquotepublic ModuleDependencySpec(java.lang.String pConfiguration,
java.lang.String pGroup,
java.lang.String pName,
java.lang.String pVersion)
ModuleDependencySpec.pConfiguration - The name of the dependency's configuration.pGroup - The dependency's group.pName - The dependency's name.pVersion - The dependency's version.java.lang.NullPointerException - if pConfiguration or pName is null.public java.lang.String getGroup()
public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String getClassifier()
public void setClassifier(java.lang.String pClassifier)
public java.lang.String getExtension()
public void setExtension(java.lang.String pExtension)
public boolean isChanging()
public void setChanging(boolean pChanging)
public boolean isForce()
public void setForce(boolean pForce)
public java.lang.String toDependencyNotation()
toDependencyNotation in class DependencySpecpublic boolean addTo(org.gradle.api.Project pProject)
DependencySpecaddTo in class DependencySpecpProject - The project to add this dependency to.public void prettyPrint(GradlePrettyPrinter pPrinter)
PrettyPrintableGradlePrettyPrinter on a format suitable for build
scripts.pPrinter - The printer to print with.protected boolean hasNonDefaultAttribute()
hasNonDefaultAttribute in class DependencySpecprotected void printClosureBody(GradlePrettyPrinter pPrinter)
printClosureBody in class DependencySpecpPrinter - The printer to print with.java.lang.NullPointerException - if pPrinter is null.