Class BuildInfo


  • public class BuildInfo
    extends java.lang.Object
    Presents build-time information
    • Constructor Summary

      Constructors 
      Constructor Description
      BuildInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.OffsetDateTime getBuildTime()
      Gets the time when this tool was built.
      java.lang.String getSha()
      Gets the git commit SHA1 hash.
      java.lang.String getVersion()
      Gets the version of the toolset.
      java.lang.String versionDisplayText()
      Gets the full version display text, as one would expect from a '--version' CLI option
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BuildInfo

        public BuildInfo()
    • Method Detail

      • getVersion

        public java.lang.String getVersion()
        Gets the version of the toolset.
        Returns:
        A semver string
      • getSha

        public java.lang.String getSha()
        Gets the git commit SHA1 hash. Useful for differentiating between SNAPSHOT builds.
        Returns:
        A short git SHA
      • getBuildTime

        public java.time.OffsetDateTime getBuildTime()
        Gets the time when this tool was built.
        Returns:
        The time as OffsetDateTime, or OffsetDateTime.MIN if metadata cannot be parsed.
      • versionDisplayText

        public java.lang.String versionDisplayText()
        Gets the full version display text, as one would expect from a '--version' CLI option
        Returns:
        Human-readable version display information