public class PrideConvention
extends java.lang.Object
| Constructor and Description |
|---|
PrideConvention(org.gradle.api.Project project) |
| Modifier and Type | Method and Description |
|---|---|
org.gradle.api.Project |
findRelativeProject(java.lang.String path)
Locates a project by path.
|
org.gradle.api.artifacts.ProjectDependency |
relativeProject(java.util.Map<java.lang.String,?> notation)
Locates a project dependency by notation.
|
org.gradle.api.Project |
relativeProject(java.lang.String path)
Locates a project by path.
|
org.gradle.api.Project |
relativeProject(java.lang.String path,
groovy.lang.Closure<?> configureClosure)
Locates a project by path and configures it using the given closure.
|
static java.util.Map<java.lang.String,?> |
resolveProjectPath(org.gradle.api.Project project,
java.util.Map<java.lang.String,?> notation) |
public static java.util.Map<java.lang.String,?> resolveProjectPath(org.gradle.api.Project project,
java.util.Map<java.lang.String,?> notation)
public org.gradle.api.Project findRelativeProject(java.lang.String path)
Locates a project by path. If the path is relative, it is interpreted relative to this project.
path - The path.public org.gradle.api.Project relativeProject(java.lang.String path)
throws org.gradle.api.UnknownProjectException
Locates a project by path. If the path is relative, it is interpreted relative to this project.
path - The path.org.gradle.api.UnknownProjectException - If no project with the given path exists.public org.gradle.api.artifacts.ProjectDependency relativeProject(java.util.Map<java.lang.String,?> notation)
Locates a project dependency by notation. If the path is relative, it is interpreted relative to this project.
This is to be used from the dependencies { ... } block.
notation - A map containing the parameters to create the projet.org.gradle.api.UnknownProjectException - If no project with the given path exists.public org.gradle.api.Project relativeProject(java.lang.String path,
groovy.lang.Closure<?> configureClosure)
throws org.gradle.api.UnknownProjectException
Locates a project by path and configures it using the given closure. If the path is relative, it is interpreted relative to this project. The target project is passed to the closure as the closure's delegate.
path - The path.configureClosure - The closure to use to configure the project.org.gradle.api.UnknownProjectException - If no project with the given path exists.