Class MavenRepositoryContainer
java.lang.Object
io.spring.initializr.generator.buildsystem.BuildItemContainer<String,MavenRepository>
io.spring.initializr.generator.buildsystem.MavenRepositoryContainer
A
BuildItemContainer
implementation for maven
repositories
.- Author:
- Stephane Nicoll
-
Constructor Summary
ConstructorDescriptionMavenRepositoryContainer
(Function<String, MavenRepository> itemResolver) Create an instance with the specifieditemResolver
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(MavenRepository repository) Register the specifiedrepository
.void
add
(MavenRepository.Builder builder) Register arepository
with the specified state.
-
Constructor Details
-
MavenRepositoryContainer
Create an instance with the specifieditemResolver
.- Parameters:
itemResolver
- the function that returns aMavenRepository
based on an identifier.
-
-
Method Details
-
add
Register the specifiedrepository
.- Parameters:
repository
- the repository to register
-
add
Register arepository
with the specified state.- Parameters:
builder
- the state of the repository
-