Class MavenRepository
java.lang.Object
io.spring.initializr.generator.buildsystem.MavenRepository
A Maven repository.
- Author:
- Andy Wilkinson, Stephane Nicoll
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Return the identifier of the repository.getName()
Return the name of the repository.getUrl()
Return the url of the repository.int
hashCode()
boolean
Return whether releases are enabled on the repository.boolean
Return whether snapshots are enabled on the repository.static MavenRepository.Builder
withIdAndUrl
(String id, String url) Initialize a new repositoryMavenRepository.Builder
with the specified id and url.
-
Field Details
-
MAVEN_CENTRAL
Maven Central.
-
-
Constructor Details
-
MavenRepository
-
-
Method Details
-
withIdAndUrl
Initialize a new repositoryMavenRepository.Builder
with the specified id and url. The name of the repository is initialized with the id.- Parameters:
id
- the identifier of the repositoryurl
- the url of the repository- Returns:
- a new builder
-
getId
Return the identifier of the repository.- Returns:
- the repository ID
-
getName
Return the name of the repository.- Returns:
- the repository name
-
getUrl
Return the url of the repository.- Returns:
- the repository url
-
isReleasesEnabled
public boolean isReleasesEnabled()Return whether releases are enabled on the repository.- Returns:
true
to enable releases,false
otherwise
-
isSnapshotsEnabled
public boolean isSnapshotsEnabled()Return whether snapshots are enabled on the repository.- Returns:
true
to enable snapshots,false
otherwise
-
equals
-
hashCode
public int hashCode()
-