public final class Dependencies
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addDependency(org.gradle.api.Project pProject,
ModuleDependencySpec pDependencySpec)
Add a dependency on an external module to a project.
|
static boolean |
addDependency(org.gradle.api.Project pProject,
ProjectDependencySpec pDependencySpec)
Add a dependency on an another project to a project.
|
static org.gradle.api.Project |
findMatchingProject(ModuleDependencySpec pDependencySpec,
org.gradle.api.Project pStartProject)
Find a project with name, group and version matching the corresponding properties of a
ModuleDependencySpec. |
public static org.gradle.api.Project findMatchingProject(ModuleDependencySpec pDependencySpec, org.gradle.api.Project pStartProject)
ModuleDependencySpec. The project will be looked for starting with the specified
project, and then in all sub-projects of the starting project, then in all sub-projects of
the starting project's ancestors.pDependencySpec - The dependency spec to match the projects with.pStartProject - The project to start looking in.pDependencySpec, or null if no project
matches.java.lang.NullPointerException - if pDependencySpec is null.public static boolean addDependency(org.gradle.api.Project pProject,
ModuleDependencySpec pDependencySpec)
pProject - The project to add the dependency to.pDependencySpec - The specification of the dependency to add.java.lang.NullPointerException - if any of the parameters is null.public static boolean addDependency(org.gradle.api.Project pProject,
ProjectDependencySpec pDependencySpec)
pProject - The project to add the dependency to.pDependencySpec - The specification of the dependency to add.java.lang.NullPointerException - if any of the parameters is null.