Dependency related utility methods.
| Type | Name and description |
|---|---|
static boolean |
addDependency(org.gradle.api.Project pProject, DependencySpec pDependencySpec)Add a dependency to a project. |
static org.gradle.api.Project |
findProjectForDependency(org.gradle.api.Project pProject, DependencySpec pDependencySpec)Find a project with name, group and version matching the corresponding properties of a DependencySpec. |
static boolean |
matches(DependencySpec pDependencySpec, org.gradle.api.Project pProject)Check if a DependencySpec has the same group, name, and version as a Project. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Add a dependency to a project.
pProject - The project.pDependencySpec - The specification of the dependency to add. Find a project with name, group and version matching the corresponding properties of a
DependencySpec. The project will be looked for in all subprojects of a starting
project as well as in all subprojects of that project's ancestors.
pProject - The project to start looking in.pDependencySpec - The dependency spec to match the projects with.pDependencySpec, or null if no project
matches. Check if a DependencySpec has the same group, name, and version as a Project.
pDependencySpec - The dependency.pProject - The project.