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 TypeMethodDescriptionbooleangetId()Return the identifier of the repository.getName()Return the name of the repository.getUrl()Return the url of the repository.inthashCode()booleanReturn whether releases are enabled on the repository.booleanReturn whether snapshots are enabled on the repository.static MavenRepository.BuilderwithIdAndUrl(String id, String url) Initialize a new repositoryMavenRepository.Builderwith the specified id and url.
-
Field Details
-
MAVEN_CENTRAL
Maven Central.
-
-
Constructor Details
-
MavenRepository
-
-
Method Details
-
withIdAndUrl
Initialize a new repositoryMavenRepository.Builderwith 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:
trueto enable releases,falseotherwise
-
isSnapshotsEnabled
public boolean isSnapshotsEnabled()Return whether snapshots are enabled on the repository.- Returns:
trueto enable snapshots,falseotherwise
-
equals
-
hashCode
public int hashCode()
-