Class PathlingVersion

java.lang.Object
au.csiro.pathling.PathlingVersion

public final class PathlingVersion extends Object
Retrieves version information from the properties file created during the build, making it available to other areas of the application.
Author:
John Grimes
  • Constructor Details

    • PathlingVersion

      public PathlingVersion()
      Default constructor for creating a new PathlingVersion instance.
  • Method Details

    • getBuildVersion

      public Optional<String> getBuildVersion()
      Returns the POM version of the application.
      Returns:
      the POM version of the application
    • getDescriptiveVersion

      public Optional<String> getDescriptiveVersion()
      Returns a descriptive version including the POM version and Git commit SHA.
      Returns:
      a descriptive version that includes the POM version and the Git commit SHA at the time of the build
    • getMajorVersion

      @Nonnull public Optional<String> getMajorVersion()
      Returns the major version component of the POM version.
      Returns:
      the major version component of the POM version
      See Also: