Class VersionInfo

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 [[email protected]]
  • Method Details

    • 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