Class BillOfMaterials
java.lang.Object
io.spring.initializr.generator.buildsystem.BillOfMaterials
A Bill of Materials (BOM) definition to be declared in a project's build configuration.
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for a Bill of Materials. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the artifact ID of the bom.Return the group ID of the bom.int
getOrder()
Return the order of this bom relative to other boms.Return the version reference of the bom.static BillOfMaterials.Builder
withCoordinates
(String groupId, String artifactId) Initialize a new BOMBillOfMaterials.Builder
with the specified coordinates.
-
Constructor Details
-
BillOfMaterials
-
-
Method Details
-
withCoordinates
Initialize a new BOMBillOfMaterials.Builder
with the specified coordinates.- Parameters:
groupId
- the group ID of the bomartifactId
- the artifact ID of the bom- Returns:
- a new builder
-
getGroupId
Return the group ID of the bom.- Returns:
- the group ID
-
getArtifactId
Return the artifact ID of the bom.- Returns:
- the artifact ID
-
getVersion
Return the version reference of the bom. Can be a fixed value or refer to a property.- Returns:
- the version reference
-
getOrder
public int getOrder()Return the order of this bom relative to other boms.- Returns:
- the bom order
-