Class MavenDistributionManagement.Builder
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenDistributionManagement.Builder
- Enclosing class:
- MavenDistributionManagement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build aMavenDistributionManagement
with the current state of this builder.downloadUrl
(String downloadUrl) Specify the URL where this project can be downloaded from.Customize therelocation
using the specified consumer.Customize therepository
using the specified consumer.Customize thesite
using the specified consumer.snapshotRepository
(Consumer<MavenDistributionManagement.DeploymentRepository.Builder> snapshotRepository) Customize thesnapshotRepository
using 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 therepository
using 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 thesnapshotRepository
using 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 thesite
using 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 therelocation
using the specified consumer.- Parameters:
relocation
- a consumer of the current relocation- Returns:
- this for method chaining
-
build
Build aMavenDistributionManagement
with the current state of this builder.- Returns:
- a
MavenDistributionManagement
-