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
ConstructorsConstructorDescriptionMavenRepositoryContainer(Function<String, MavenRepository> itemResolver) Create an instance with the specifieditemResolver. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MavenRepository repository) Register the specifiedrepository.voidadd(MavenRepository.Builder builder) Register arepositorywith the specified state.
-
Constructor Details
-
MavenRepositoryContainer
Create an instance with the specifieditemResolver.- Parameters:
itemResolver- the function that returns aMavenRepositorybased on an identifier.
-
-
Method Details
-
add
Register the specifiedrepository.- Parameters:
repository- the repository to register
-
add
Register arepositorywith the specified state.- Parameters:
builder- the state of the repository
-