Package au.csiro.pathling
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 Summary
Constructors Constructor Description PathlingVersion()Default constructor for creating a new PathlingVersion instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getBuildVersion()Optional<String>getDescriptiveVersion()Optional<String>getMajorVersion()
-
-
-
Method Detail
-
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:
- Semantic Versioning 2.0.0
-
-