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 Summary
Nested classes/interfaces inherited from class InfoProperties
InfoProperties.Entry -
Constructor Summary
ConstructorsConstructorDescriptionBuildProperties(Properties entries) Create an instance with the specified entries. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturn the artifactId of the project ornull.@Nullable StringgetGroup()Return the groupId of the project ornull.@Nullable StringgetName()Return the name of the project ornull.@Nullable InstantgetTime()Return the timestamp of the build ornull.@Nullable StringReturn the version of the project ornull.Methods inherited from class InfoProperties
get, getInstant, iterator, toPropertySourceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
BuildProperties
Create an instance with the specified entries.- Parameters:
entries- the information to expose
-
-
Method Details
-
getGroup
-
getArtifact
Return the artifactId of the project ornull.- Returns:
- the artifact
-
getName
-
getVersion
Return the version of the project ornull.- Returns:
- the version
-
getTime
Return 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:
-