public static class MavenRepository.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
MavenRepository |
build()
Build a
MavenRepository with the current state of this builder. |
MavenRepository.Builder |
id(String id)
Set the id of the repository.
|
MavenRepository.Builder |
name(String name)
Set the name of the repository.
|
MavenRepository.Builder |
onlyReleases()
Specify that the repository should only be used for releases.
|
MavenRepository.Builder |
onlySnapshots()
Specify that the repository should only be used for snapshots.
|
MavenRepository.Builder |
releasesEnabled(boolean releasesEnabled)
Specify whether releases are enabled.
|
MavenRepository.Builder |
snapshotsEnabled(boolean snapshotsEnabled)
Specify whether snapshots are enabled.
|
MavenRepository.Builder |
url(String url)
Set the url of the repository.
|
public MavenRepository.Builder id(String id)
id - the identifierpublic MavenRepository.Builder name(String name)
name - the namepublic MavenRepository.Builder url(String url)
url - the urlpublic MavenRepository.Builder releasesEnabled(boolean releasesEnabled)
releasesEnabled - whether releases are served by the repositorypublic MavenRepository.Builder snapshotsEnabled(boolean snapshotsEnabled)
snapshotsEnabled - whether snapshots are served by the repositorypublic MavenRepository.Builder onlyReleases()
public MavenRepository.Builder onlySnapshots()
public MavenRepository build()
MavenRepository with the current state of this builder.MavenRepositoryCopyright © 2021 Pivotal Software, Inc.. All rights reserved.