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 org.springframework.boot.info.InfoProperties
InfoProperties.Entry
-
Constructor Summary
ConstructorsConstructorDescriptionBuildProperties
(Properties entries) Create an instance with the specified entries. -
Method Summary
Methods inherited from class org.springframework.boot.info.InfoProperties
get, getInstant, iterator, toPropertySource
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BuildProperties
Create an instance with the specified entries.- Parameters:
entries
- the information to expose
-
-
Method Details
-
getGroup
-
getArtifact
-
getName
-
getVersion
-
getTime
Return the timestamp of the build ornull
.If the original value could not be parsed properly, it is still available with the
time
key.- Returns:
- the build time
- See Also:
-