- java.lang.Object
-
- com.erudika.para.core.utils.VersionInfo
-
public final class VersionInfo extends Object
Uses the generated class Version.java to display version information.- Author:
- Alex Bogdanovski [alex@erudika.com]
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetArtifactId()Returns the current artifact id from Maven.static StringgetGIT()Returns the Git repo starting with "scm:git:git" from Maven.static StringgetGITBranch()Returns the Git branch.static StringgetGroupId()Returns the current group id from Maven.static StringgetRevision()Returns the current revision from Git.static StringgetVersion()Returns the current version from Maven.
-
-
-
Method Detail
-
getVersion
public static String getVersion()
Returns the current version from Maven.- Returns:
- version string
-
getGroupId
public static String getGroupId()
Returns the current group id from Maven.- Returns:
- id string
-
getArtifactId
public static String getArtifactId()
Returns the current artifact id from Maven.- Returns:
- id string
-
getRevision
public static String getRevision()
Returns the current revision from Git.- Returns:
- version string
-
getGIT
public static String getGIT()
Returns the Git repo starting with "scm:git:git" from Maven.- Returns:
- repo string
-
getGITBranch
public static String getGITBranch()
Returns the Git branch.- Returns:
- git branch name
-
-