Class MavenLicense.Builder
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenLicense.Builder
- Enclosing class:
- MavenLicense
Builder for a
MavenLicense
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Set comments associated with the license.distribution
(MavenLicense.Distribution distribution) Set the distribution mechanism of the project associated with the license.Set the name of the license.Set the URL of the license.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Set the name of the license.- Parameters:
name
- the name of the license ornull
- Returns:
- this for method chaining
-
url
Set the URL of the license.- Parameters:
url
- the URL of the license ornull
- Returns:
- this for method chaining
-
distribution
Set the distribution mechanism of the project associated with the license.- Parameters:
distribution
- the distribution mechanism of the project ornull
- Returns:
- this for method chaining
-
comments
Set comments associated with the license.- Parameters:
comments
- the comments for the license ornull
- Returns:
- this for method chaining
-
build
-