Class BuildSettings.Builder<B extends BuildSettings.Builder<B>>
java.lang.Object
io.spring.initializr.generator.buildsystem.BuildSettings.Builder<B>
- Type Parameters:
B
- builder type
- Direct Known Subclasses:
GradleBuildSettings.Builder
,MavenBuildSettings.Builder
- Enclosing class:
- BuildSettings
public abstract static class BuildSettings.Builder<B extends BuildSettings.Builder<B>>
extends Object
Builder for build settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the artifact ID of the project.build()
Build aBuildSettings
with the current state of this builder.Set the group ID of the project.protected B
self()
Set the version of the project.
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
group
Set the group ID of the project.- Parameters:
group
- the group ID- Returns:
- this for method chaining
-
artifact
Set the artifact ID of the project.- Parameters:
artifact
- the artifact ID- Returns:
- this for method chaining
-
version
Set the version of the project.- Parameters:
version
- the version- Returns:
- this for method chaining
-
self
-
build
Build aBuildSettings
with the current state of this builder.- Returns:
- a
BuildSettings
-