Class MavenDistributionManagement.Builder
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenDistributionManagement.Builder
- Enclosing class:
- MavenDistributionManagement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build aMavenDistributionManagementwith the current state of this builder.downloadUrl(String downloadUrl) Specify the URL where this project can be downloaded from.Customize therelocationusing the specified consumer.Customize therepositoryusing the specified consumer.Customize thesiteusing the specified consumer.snapshotRepository(Consumer<MavenDistributionManagement.DeploymentRepository.Builder> snapshotRepository) Customize thesnapshotRepositoryusing the specified consumer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
downloadUrl
Specify the URL where this project can be downloaded from.- Parameters:
downloadUrl- the URL of the project's download page- Returns:
- this for method chaining
-
repository
public MavenDistributionManagement.Builder repository(Consumer<MavenDistributionManagement.DeploymentRepository.Builder> repository) Customize therepositoryusing the specified consumer.- Parameters:
repository- a consumer of the current repository- Returns:
- this for method chaining
-
snapshotRepository
public MavenDistributionManagement.Builder snapshotRepository(Consumer<MavenDistributionManagement.DeploymentRepository.Builder> snapshotRepository) Customize thesnapshotRepositoryusing the specified consumer.- Parameters:
snapshotRepository- a consumer of the current snapshot repository- Returns:
- this for method chaining
-
site
public MavenDistributionManagement.Builder site(Consumer<MavenDistributionManagement.Site.Builder> site) Customize thesiteusing the specified consumer.- Parameters:
site- a consumer of the current site- Returns:
- this for method chaining
-
relocation
public MavenDistributionManagement.Builder relocation(Consumer<MavenDistributionManagement.Relocation.Builder> relocation) Customize therelocationusing the specified consumer.- Parameters:
relocation- a consumer of the current relocation- Returns:
- this for method chaining
-
build
Build aMavenDistributionManagementwith the current state of this builder.- Returns:
- a
MavenDistributionManagement
-