Package io.micronaut.starter.util
Class VersionInfo
java.lang.Object
io.micronaut.starter.util.VersionInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull String
getBomVersion
(String id) Get a dependency version from the BOM for the given ID.Get a dependency version for the given ID.Gets the dependency versions.static JdkVersion
getMajorVersion
(String version) static String
static String
static boolean
static boolean
static String
toJdkVersion
(int javaVersion)
-
Constructor Details
-
VersionInfo
public VersionInfo()
-
-
Method Details
-
getStarterVersion
- Returns:
- The starter version
-
isStarterSnapshot
public static boolean isStarterSnapshot()- Returns:
- Checks whether the starter is a snapshot version.
-
isMicronautSnapshot
public static boolean isMicronautSnapshot()- Returns:
- Checks whether micronaut is a snapshot version.
-
getMicronautVersion
-
getMicronautMajorVersion
-
getMajorVersion
-
getDependencyVersions
Gets the dependency versions.- Returns:
- The versions
-
getBomVersion
Get a dependency version from the BOM for the given ID.- Parameters:
id
- The ID- Returns:
- The dependency version as a string
-
getDependencyVersion
Get a dependency version for the given ID.- Parameters:
id
- The ID- Returns:
- The dependency version
-
getJavaVersion
-
toJdkVersion
-