This class provides plugin implementation with the #apply
method as the main entry point. It is only intended for root projects or
intermediate subprojects, not leaf projects.
When this class is applied, it locates every leaf project belonging to the project it is applied to; of those leaves, it first filters away any that (a) have a Gradle build file or (b) don't have a file wrench.
The remaining leaves with file wrenches and no build files are configured with the wrench staging plugin.
The execution sequence is still not quite as nice as it could be; the
staging plugin is expected to be applied to a root project or high-level
node, before the children have been evaluated. This means that although
the implementation pretends to check for artifact identifier presets, etc.,
the default is in fact always applied. This is because of complications
around JFrog's Artifactory plugin, which doesn't play nice with the
plugins { .. } syntax in multi-project builds.
| Type | Name and description |
|---|---|
java.lang.String |
buildFileNameThe Gradle build file name to check for. |
java.lang.String |
wrenchFileNameThe file wrench file name to check for. |
| Constructor and description |
|---|
CompositeStaging
(java.util.Map options)Constructor. |
CompositeStaging
()Constructor. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.gradle.api.Project project)Applies the staging plugin to leaves below the parameter project. |
|
void |
applyToWrenchProject(org.gradle.api.Project project)Applies the staging plugin to the parameter project. |
|
java.lang.Object |
findWrenchProjects(org.gradle.api.Project project)Finds the applicable leaves to apply the staging plugin to. |
| 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() |
The Gradle build file name to check for. Defaults to build.gradle.
The file wrench file name to check for. Defaults to runbook.wrench.
Constructor. The map parameter may be empty, or can include the following:
buildFileName: Overrides the build.gradle defaultwrenchFileName: Overrides the runbook.wrench defaultoptions - The construction parametersConstructor. Applies default values.
Applies the staging plugin to leaves below the parameter project.
project - The top-level node to locate leaves underApplies the staging plugin to the parameter project.
project - The project to apply the staging project toFinds the applicable leaves to apply the staging plugin to.
project - The top-level node to locate leaves underGroovy Documentation