Class PathlingVersion

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

public 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
    • getMajorVersion

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

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