public final class ProjectHierarchy
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
applyToAll(org.gradle.api.Project rootProject,
org.gradle.api.Action<org.gradle.api.Project> action)
Applies the given action to all the available projects in the hierarchy defined by the given
root project.
|
public static void applyToAll(org.gradle.api.Project rootProject, org.gradle.api.Action<org.gradle.api.Project> action)
The action is applied in the breadth-first order from the root project to the subprojects.
rootProject
- the root project of a Gradle project hierarchyaction
- the action to apply to each project in the hierarchy