Class VersionUtils

java.lang.Object
io.micronaut.core.version.VersionUtils

public class VersionUtils extends Object
Utility methods for versioning.
Since:
1.0
Author:
graemerocher, Iván Lopez
  • Field Details

    • MICRONAUT_VERSION

      public static final String MICRONAUT_VERSION
      The current version of Micronaut.
  • Constructor Details

    • VersionUtils

      public VersionUtils()
  • Method Details

    • isAtLeastMicronautVersion

      public static boolean isAtLeastMicronautVersion(String requiredVersion)
      Return whether the current version of Micronaut is at least the given version using semantic rules.
      Parameters:
      requiredVersion - The required version
      Returns:
      True if it is
    • getMicronautVersion

      @Nullable public static @Nullable String getMicronautVersion()