Class BillOfMaterials

java.lang.Object
io.spring.initializr.generator.buildsystem.BillOfMaterials

public class BillOfMaterials extends Object
A Bill of Materials (BOM) definition to be declared in a project's build configuration.
Author:
Stephane Nicoll
  • Constructor Details

  • Method Details

    • withCoordinates

      public static BillOfMaterials.Builder withCoordinates(String groupId, String artifactId)
      Initialize a new BOM BillOfMaterials.Builder with the specified coordinates.
      Parameters:
      groupId - the group ID of the bom
      artifactId - the artifact ID of the bom
      Returns:
      a new builder
    • getGroupId

      public String getGroupId()
      Return the group ID of the bom.
      Returns:
      the group ID
    • getArtifactId

      public String getArtifactId()
      Return the artifact ID of the bom.
      Returns:
      the artifact ID
    • getVersion

      public VersionReference 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