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
  • Constructor Details

    • BuildProperties

      public BuildProperties(Properties entries)
      Create an instance with the specified entries.
      Parameters:
      entries - the information to expose
  • Method Details

    • getGroup

      public String getGroup()
      Return the groupId of the project or null.
      Returns:
      the group
    • getArtifact

      public String getArtifact()
      Return the artifactId of the project or null.
      Returns:
      the artifact
    • getName

      public String getName()
      Return the name of the project or null.
      Returns:
      the name
    • getVersion

      public String getVersion()
      Return the version of the project or null.
      Returns:
      the version
    • getTime

      public Instant getTime()
      Return the timestamp of the build or null.

      If the original value could not be parsed properly, it is still available with the time key.

      Returns:
      the build time
      See Also: