Class MavenRepository.Builder
java.lang.Object
io.spring.initializr.generator.buildsystem.MavenRepository.Builder
- Enclosing class:
- MavenRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build aMavenRepository
with the current state of this builder.Set the id of the repository.Set the name of the repository.Specify that the repository should only be used for releases.Specify that the repository should only be used for snapshots.releasesEnabled
(boolean releasesEnabled) Specify whether releases are enabled.snapshotsEnabled
(boolean snapshotsEnabled) Specify whether snapshots are enabled.Set the url of the repository.
-
Constructor Details
-
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.- Parameters:
url
- the url- Returns:
- this for method chaining
-
releasesEnabled
Specify whether releases are enabled.- Parameters:
releasesEnabled
- whether releases are served by the repository- Returns:
- this for method chaining
-
snapshotsEnabled
Specify whether snapshots are enabled.- Parameters:
snapshotsEnabled
- whether snapshots are served by the repository- Returns:
- this for method chaining
-
onlyReleases
Specify that the repository should only be used for releases.- Returns:
- this for method chaining
-
onlySnapshots
Specify that the repository should only be used for snapshots.- Returns:
- this for method chaining
-
build
Build aMavenRepository
with the current state of this builder.- Returns:
- a
MavenRepository
-