Class Version

java.lang.Object
org.mockserver.version.Version

public final class Version extends Object
  • Constructor Details

    • Version

      public Version()
  • Method Details

    • getVersion

      public static String getVersion()
    • getMajorMinorVersion

      public static String getMajorMinorVersion()
    • matchesMajorMinorVersion

      public static boolean matchesMajorMinorVersion(String version)
    • getGroupId

      public static String getGroupId()
    • getArtifactId

      public static String getArtifactId()
    • getGitHash

      public static String getGitHash()
      The abbreviated git commit hash the artifact was built from, populated at build time by the git-commit-id-maven-plugin. Returns an empty string for builds with no git metadata available (e.g. a source tarball without a .git directory), or the MOCKSERVER_GITHASH system property if set as an override.