Class VersionInfo

java.lang.Object
io.micronaut.starter.util.VersionInfo

public class VersionInfo extends Object
  • Constructor Details

    • VersionInfo

      public VersionInfo()
  • Method Details

    • getStarterVersion

      public static String 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

      public static String getMicronautVersion()
    • getMicronautMajorVersion

      public static Optional<Integer> getMicronautMajorVersion()
    • getMajorVersion

      public static Optional<Integer> getMajorVersion(String version)
    • getDependencyVersions

      public static Map<String,String> getDependencyVersions()
      Gets the dependency versions.
      Returns:
      The versions
    • getBomVersion

      @NonNull public static @NonNull String getBomVersion(String id)
      Get a dependency version from the BOM for the given ID.
      Parameters:
      id - The ID
      Returns:
      The dependency version as a string
    • getDependencyVersion

      @NonNull public static Map.Entry<String,String> getDependencyVersion(String id)
      Get a dependency version for the given ID.
      Parameters:
      id - The ID
      Returns:
      The dependency version
    • getJavaVersion

      public static JdkVersion getJavaVersion()
    • toJdkVersion

      public static String toJdkVersion(int javaVersion)