Class MetadataBuildItemMapper
java.lang.Object
io.spring.initializr.metadata.support.MetadataBuildItemMapper
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BillOfMaterialstoBom(@Nullable BillOfMaterials bom) Return aBuildbom from abom metadata.static @Nullable DependencytoDependency(@Nullable Dependency dependency) Return anBuilddependency from adependency metadata.static @Nullable MavenRepositorytoRepository(String id, @Nullable Repository repository) Return aBuildrepository from arepository metadata.
-
Method Details
-
toDependency
@Contract("!null -> !null") public static @Nullable Dependency toDependency(@Nullable Dependency dependency) Return anBuilddependency from adependency metadata.- Parameters:
dependency- a dependency metadata- Returns:
- an equivalent build dependency
-
toBom
@Contract("!null -> !null") public static @Nullable BillOfMaterials toBom(@Nullable BillOfMaterials bom) Return aBuildbom from abom metadata.- Parameters:
bom- a metadata bom- Returns:
- an equivalent build bom
-
toRepository
Return aBuildrepository from arepository metadata.- Parameters:
id- the repository idrepository- a repository metadata- Returns:
- an equivalent build repository
-