mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
Use a Builder for BillOfMaterials
Closes gh-1012
This commit is contained in:
@@ -78,8 +78,8 @@ public final class MetadataBuildItemMapper {
|
||||
}
|
||||
VersionReference version = (bom.getVersionProperty() != null)
|
||||
? VersionReference.ofProperty(bom.getVersionProperty()) : VersionReference.ofValue(bom.getVersion());
|
||||
return new io.spring.initializr.generator.buildsystem.BillOfMaterials(bom.getGroupId(), bom.getArtifactId(),
|
||||
version, bom.getOrder());
|
||||
return io.spring.initializr.generator.buildsystem.BillOfMaterials
|
||||
.withCoordinates(bom.getGroupId(), bom.getArtifactId()).version(version).order(bom.getOrder()).build();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user