Interface VersionInfo
-
public interface VersionInfoProvides access to the artifact's version and build revision information.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static VersionInfogetInfo()Gets a VersionInfo instance.StringgetModule()Gets the module name of the artifact.StringgetRevision()Gets the SCM revision identifier (Git commit hash) of the build.StringgetVersion()Gets the version string of the artifact.
-
-
-
Method Detail
-
getInfo
static VersionInfo getInfo()
Gets a VersionInfo instance.- Returns:
- A VersionInfo instance.
-
getVersion
String getVersion()
Gets the version string of the artifact. Typically corresponds to the Maven project version.- Returns:
- The artifact version.
-
getRevision
String getRevision()
Gets the SCM revision identifier (Git commit hash) of the build.- Returns:
- The SCM revision string.
-
getModule
String getModule()
Gets the module name of the artifact.- Returns:
- The module name string
-
-