Class BillOfMaterials.Builder
java.lang.Object
io.spring.initializr.generator.buildsystem.BillOfMaterials.Builder
- Enclosing class:
- BillOfMaterials
Builder for a Bill of Materials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifactId
(String artifactId) Set the artifact ID of the bom.build()
Build aBillOfMaterials
with the current state of this builder.Set the group ID of the bom.order
(int order) Set the order of the bom relative to other boms.version
(VersionReference version) Set the version of the bom.
-
Constructor Details
-
Builder
-
-
Method Details
-
groupId
Set the group ID of the bom.- Parameters:
groupId
- the group ID- Returns:
- this for method chaining
-
artifactId
Set the artifact ID of the bom.- Parameters:
artifactId
- the artifact ID- Returns:
- this for method chaining
-
version
Set the version of the bom.- Parameters:
version
- the version- Returns:
- this for method chaining
- See Also:
-
order
Set the order of the bom relative to other boms. By default the order isInteger.MAX_VALUE
which means the bom has the lowest priority.- Parameters:
order
- the order of the bom- Returns:
- this for method chaining
-
build
Build aBillOfMaterials
with the current state of this builder.- Returns:
- a
BillOfMaterials
-