public static class MavenPlugin.Builder extends Object
MavenPlugin.| Modifier | Constructor and Description |
|---|---|
protected |
Builder(String groupId,
String artifactId) |
| Modifier and Type | Method and Description |
|---|---|
MavenPlugin |
build()
Build a
MavenPlugin with the current state of this builder. |
MavenPlugin.Builder |
configuration(Consumer<MavenPlugin.ConfigurationBuilder> configuration)
Customize the
configuration of the plugin using the specified consumer. |
MavenPlugin.Builder |
dependency(String groupId,
String artifactId,
String version)
Add a plugin dependency.
|
MavenPlugin.Builder |
execution(String id,
Consumer<MavenPlugin.ExecutionBuilder> execution)
Add an
execution with the specified id and Consumer to
customize the object. |
MavenPlugin.Builder |
extensions(boolean extensions)
Set whether to load extensions of this plugin.
|
MavenPlugin.Builder |
version(String version)
Set the version of the plugin or
null if the version is managed by the
project. |
public MavenPlugin.Builder version(String version)
null if the version is managed by the
project.version - the version of the plugin or nullpublic MavenPlugin.Builder extensions(boolean extensions)
extensions - whether to load extensionspublic MavenPlugin.Builder configuration(Consumer<MavenPlugin.ConfigurationBuilder> configuration)
configuration of the plugin using the specified consumer.configuration - a consumer of the current configurationpublic MavenPlugin.Builder execution(String id, Consumer<MavenPlugin.ExecutionBuilder> execution)
execution with the specified id and Consumer to
customize the object. If the execution has already been¬ added, the consumer
can be used to further tune the existing plugin executionid - the id of the executionexecution - a Consumer to customize the MavenPlugin.Executionpublic MavenPlugin.Builder dependency(String groupId, String artifactId, String version)
groupId - the group ID of the dependencyartifactId - the artifact ID of the dependencyversion - the version of the dependencypublic MavenPlugin build()
MavenPlugin with the current state of this builder.MavenBuildCopyright © 2021 Pivotal Software, Inc.. All rights reserved.