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
Modifier and TypeMethodDescription@Nullable String
Return the artifactId of the project ornull
.@Nullable String
getGroup()
Return the groupId of the project ornull
.@Nullable String
getName()
Return the name of the project ornull
.@Nullable Instant
getTime()
Return the timestamp of the build ornull
.@Nullable String
Return the version of the project ornull
.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
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
time
key.- Returns:
- the build time
- See Also:
-