Class KotlinVersion

java.lang.Object
org.axonframework.update.detection.KotlinVersion

@Internal public class KotlinVersion extends Object
Utility class to retrieve the current Kotlin version at runtime. It attempts to access the `kotlin.KotlinVersion` class and invoke its `getCurrent` method. If the class or method is not found, it returns "none".
Since:
5.0.0
Author:
Mitchell Herrijgers
  • Constructor Details

    • KotlinVersion

      public KotlinVersion()
  • Method Details

    • get

      public static String get()
      Returns the current Kotlin version as a string. If the Kotlin library is not present, it returns "none".
      Returns:
      the current Kotlin version or "none" if not available