Package io.micronaut.core.version
Class VersionUtils
- java.lang.Object
-
- io.micronaut.core.version.VersionUtils
-
public class VersionUtils extends java.lang.ObjectUtility methods for versioning.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMICRONAUT_VERSIONThe 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.StringgetMicronautVersion()static booleanisAtLeastMicronautVersion(java.lang.String requiredVersion)Return whether the current version of Micronaut is at least the given version using semantic rules.
-
-
-
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()
-
-