Class VersionUtil

java.lang.Object
io.camunda.zeebe.util.VersionUtil

public final class VersionUtil extends Object
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
    • VERSION_OVERRIDE_ENV_NAME

      public static final String VERSION_OVERRIDE_ENV_NAME
      See Also:
  • Method Details

    • getVersion

      public static String getVersion()
      Returns:
      the current version or 'development' if none can be determined.
    • getSemanticVersion

      public static Optional<SemanticVersion> getSemanticVersion()
      Returns:
      the current version if it can be parsed as a semantic version, otherwise empty.
    • getVersionLowerCase

      public static String getVersionLowerCase()
    • getPreviousVersion

      public static String getPreviousVersion()
      Returns:
      the previous stable version or null if none was found.