Package io.spring.initializr.metadata
Class InitializrMetadata
java.lang.Object
io.spring.initializr.metadata.InitializrMetadata
Meta-data used to generate a project.
- Author:
- Stephane Nicoll
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInitializrMetadata(InitializrConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptioncreateCliDistributionURl(String extension) Create an URL suitable to download Spring Boot cli for the specified version and extension.createSpringBootBom(String bootVersion, String versionProperty) Create aBillOfMaterialsfor the spring boot BOM.defaults()Return the defaults for the capabilities defined on this instance.getName()getTypes()voidmerge(InitializrMetadata other) Merge this instance with the specified argument.voidupdateSpringBootVersions(List<DefaultMetadataElement> versionsMetadata) Update the available Spring Boot versions with the specified capabilities.voidvalidate()Validate the metadata.
-
Constructor Details
-
InitializrMetadata
public InitializrMetadata() -
InitializrMetadata
-
-
Method Details
-
getConfiguration
-
getDependencies
-
getTypes
-
getBootVersions
-
getPackagings
-
getJavaVersions
-
getLanguages
-
getName
-
getDescription
-
getGroupId
-
getArtifactId
-
getVersion
-
getPackageName
-
merge
Merge this instance with the specified argument.- Parameters:
other- the other instance
-
validate
public void validate()Validate the metadata. -
updateSpringBootVersions
Update the available Spring Boot versions with the specified capabilities.- Parameters:
versionsMetadata- the Spring Boot boot versions metadata to use
-
createCliDistributionURl
Create an URL suitable to download Spring Boot cli for the specified version and extension.- Parameters:
extension- the required extension- Returns:
- the download URL
-
createSpringBootBom
Create aBillOfMaterialsfor the spring boot BOM.- Parameters:
bootVersion- the Spring Boot versionversionProperty- the property that contains the version- Returns:
- a new
BillOfMaterialsinstance
-
defaults
Return the defaults for the capabilities defined on this instance.- Returns:
- the default capabilities
-