public class BillOfMaterials extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BillOfMaterials.Mapping
Mapping information.
|
| Constructor and Description |
|---|
BillOfMaterials() |
| Modifier and Type | Method and Description |
|---|---|
static BillOfMaterials |
create(String groupId,
String artifactId) |
static BillOfMaterials |
create(String groupId,
String artifactId,
String version) |
List<String> |
getAdditionalBoms()
Return the BOM(s) that should be automatically included if this BOM is required.
|
String |
getArtifactId() |
String |
getGroupId() |
List<BillOfMaterials.Mapping> |
getMappings() |
Integer |
getOrder()
Return the relative order of this BOM where lower values have higher priority.
|
List<String> |
getRepositories()
Return the repositories that are required if this BOM is required.
|
String |
getVersion()
Return the version of the BOM.
|
VersionProperty |
getVersionProperty()
Return the
VersionProperty to use to externalize the version of the BOM. |
BillOfMaterials |
resolve(Version bootVersion)
Resolve this instance according to the specified Spring Boot
Version. |
void |
setAdditionalBoms(List<String> additionalBoms) |
void |
setArtifactId(String artifactId) |
void |
setGroupId(String groupId) |
void |
setOrder(Integer order) |
void |
setRepositories(List<String> repositories) |
void |
setVersion(String version) |
void |
setVersionProperty(String versionPropertyName) |
void |
setVersionProperty(VersionProperty versionProperty) |
String |
toString() |
void |
updateCompatibilityRange(VersionParser versionParser) |
void |
validate() |
public String getGroupId()
public void setGroupId(String groupId)
public String getArtifactId()
public void setArtifactId(String artifactId)
public String getVersion()
null if it is provided via a mapping.nullpublic void setVersion(String version)
public VersionProperty getVersionProperty()
VersionProperty to use to externalize the version of the BOM.
When this is set, a version property is automatically added rather than setting the
version in the BOM declaration itself.public void setVersionProperty(VersionProperty versionProperty)
public void setVersionProperty(String versionPropertyName)
public Integer getOrder()
Integer.MAX_VALUE, indicating lowest priority. The Spring
Boot dependencies BOM has an order of 100.public void setOrder(Integer order)
public List<String> getAdditionalBoms()
null if it is provided via a mapping.public List<String> getRepositories()
null if it is provided via a mapping.public List<BillOfMaterials.Mapping> getMappings()
public void validate()
public void updateCompatibilityRange(VersionParser versionParser)
public BillOfMaterials resolve(Version bootVersion)
Version.
Return a BillOfMaterials instance that holds the version, repositories and
additional BOMs to use, if any.bootVersion - the Spring Boot versionInvalidInitializrMetadataException - if no suitable mapping is found for that
versionpublic static BillOfMaterials create(String groupId, String artifactId)
public static BillOfMaterials create(String groupId, String artifactId, String version)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.