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
ConstructorsModifierConstructorDescriptionprotected
InitializrMetadata
(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 aBillOfMaterials
for the spring boot BOM.defaults()
Return the defaults for the capabilities defined on this instance.getName()
getTypes()
void
merge
(InitializrMetadata other) Merge this instance with the specified argument.void
updateSpringBootVersions
(List<DefaultMetadataElement> versionsMetadata) Update the available Spring Boot versions with the specified capabilities.void
validate()
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 aBillOfMaterials
for the spring boot BOM.- Parameters:
bootVersion
- the Spring Boot versionversionProperty
- the property that contains the version- Returns:
- a new
BillOfMaterials
instance
-
defaults
Return the defaults for the capabilities defined on this instance.- Returns:
- the default capabilities
-