Class VersionUtils


  • public class VersionUtils
    extends java.lang.Object
    Utility methods for versioning.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MICRONAUT_VERSION
      The current version of Micronaut.
    • Constructor Summary

      Constructors 
      Constructor Description
      VersionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getMicronautVersion()  
      static boolean isAtLeastMicronautVersion​(java.lang.String requiredVersion)
      Return whether the current version of Micronaut is at least the given version using semantic rules.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MICRONAUT_VERSION

        public static final java.lang.String MICRONAUT_VERSION
        The current version of Micronaut.
    • Constructor Detail

      • VersionUtils

        public VersionUtils()
    • Method Detail

      • isAtLeastMicronautVersion

        public static boolean isAtLeastMicronautVersion​(java.lang.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 java.lang.String getMicronautVersion()