Package org.springframework.boot.info
Class BuildProperties
java.lang.Object
org.springframework.boot.info.InfoProperties
org.springframework.boot.info.BuildProperties
- All Implemented Interfaces:
- Iterable<InfoProperties.Entry>
@ImportRuntimeHints(org.springframework.boot.info.BuildProperties.BuildPropertiesRuntimeHints.class)
public class BuildProperties
extends InfoProperties
Provide build-related information such as group and artifact.
- Since:
- 1.4.0
- Author:
- Stephane Nicoll
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.boot.info.InfoPropertiesInfoProperties.Entry
- 
Constructor SummaryConstructorsConstructorDescriptionBuildProperties(Properties entries) Create an instance with the specified entries.
- 
Method SummaryMethods inherited from class org.springframework.boot.info.InfoPropertiesget, getInstant, iterator, toPropertySourceMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
BuildPropertiesCreate an instance with the specified entries.- Parameters:
- entries- the information to expose
 
 
- 
- 
Method Details- 
getGroupReturn the groupId of the project ornull.- Returns:
- the group
 
- 
getArtifactReturn the artifactId of the project ornull.- Returns:
- the artifact
 
- 
getNameReturn the name of the project ornull.- Returns:
- the name
 
- 
getVersionReturn the version of the project ornull.- Returns:
- the version
 
- 
getTimeReturn the timestamp of the build ornull.If the original value could not be parsed properly, it is still available with the timekey.- Returns:
- the build time
- See Also:
 
 
-