public class ProjectDependencySpec extends DependencySpec
| Constructor and Description |
|---|
ProjectDependencySpec(java.lang.String pConfiguration,
java.lang.String pProjectPath)
Create a new
ProjectDependencySpec. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTo(org.gradle.api.Project pProject)
Add this dependency to a project.
|
java.lang.String |
getProjectPath() |
void |
prettyPrint(GradlePrettyPrinter pPrinter)
Pretty print this instance with a
GradlePrettyPrinter on a format suitable for build
scripts. |
java.lang.String |
toDependencyNotation()
Get the string notation for this dependency.
|
java.util.Map<java.lang.String,java.lang.String> |
toMap() |
addArtifact, addArtifact, addExclusion, addExclusion, forEachArtifact, forEachExclusion, getConfiguration, getNumArtifacts, getNumExclusions, hasNonDefaultAttribute, isTransitive, prettyPrintDependencies, printClosureBody, setConfiguration, setTransitive, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitquotepublic ProjectDependencySpec(java.lang.String pConfiguration,
java.lang.String pProjectPath)
ProjectDependencySpec.pConfiguration - The name of the dependency's configuration.pProjectPath - The path to the project.java.lang.NullPointerException - if any of the parameters is null.public java.lang.String getProjectPath()
public java.util.Map<java.lang.String,java.lang.String> toMap()
public java.lang.String toDependencyNotation()
DependencySpectoDependencyNotation 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.