Class MavenDistributionManagement.DeploymentRepository.Builder
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenDistributionManagement.DeploymentRepository.Builder
- Enclosing class:
- MavenDistributionManagement.DeploymentRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build aMavenDistributionManagement.DeploymentRepository
with the current state of this builder.Set the id of the repository.Set the repository layout, can bedefault
orlegacy
.Set the name of the repository.uniqueVersion
(Boolean uniqueVersion) Set whether snapshots should be assigned a unique version comprised of the timestamp and build number.Set the url of the repository to use to upload artifacts.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Set the id of the repository.- Parameters:
id
- the identifier- Returns:
- this for method chaining
-
name
Set the name of the repository.- Parameters:
name
- the name- Returns:
- this for method chaining
-
url
Set the url of the repository to use to upload artifacts. Specify both the location and the transport protocol used to transfer a built artifact to the repository.- Parameters:
url
- the url- Returns:
- this for method chaining
-
layout
Set the repository layout, can bedefault
orlegacy
.- Parameters:
layout
- the layout- Returns:
- this for method chaining
-
uniqueVersion
public MavenDistributionManagement.DeploymentRepository.Builder uniqueVersion(Boolean uniqueVersion) Set whether snapshots should be assigned a unique version comprised of the timestamp and build number.- Parameters:
uniqueVersion
-true
to use unique version for snapshots- Returns:
- this for method chaining
-
build
Build aMavenDistributionManagement.DeploymentRepository
with the current state of this builder.
-