Class MavenExtension.Builder
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenExtension.Builder
- Enclosing class:
- MavenExtension
Builder for
MavenExtension.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aMavenExtensionwith the current state of this builder.Set the version of the extension.versionReference(VersionReference version) Set the version of the extension.
-
Constructor Details
-
Builder
Creates a new instance.- Parameters:
groupId- the group idartifactId- the artifact id
-
-
Method Details
-
version
Set the version of the extension.- Parameters:
version- the version of the extension- Returns:
- this for method chaining
-
versionReference
Set the version of the extension.- Parameters:
version- the version of the extension- Returns:
- this for method chaining
-
build
Build aMavenExtensionwith the current state of this builder.- Returns:
- a
MavenExtension
-