/** * Attempt to determine if Kotlin is on the classpath and if so what version is in use. * Can do this by either using the KotlinVersion class that was introduced in 1.1 or * via looking at the JAR's manifest versions for earlier versions. * * @return Kotlin version if any, else empty string */ private static String kotlinVersion() { String version = kotlinVersionByClass(); return version.equals("") ? kotlinVersionByJar() : version; }
/** * Attempt to determine if Kotlin is on the classpath and if so what version is in use. * Can do this by either using the KotlinVersion class that was introduced in 1.1 or * via looking at the JAR's manifest versions for earlier versions. * * @return Kotlin version if any, else empty string */ private static String kotlinVersion() { String version = kotlinVersionByClass(); return version.equals("") ? kotlinVersionByJar() : version; }
/** * Attempt to determine if Kotlin is on the classpath and if so what version is in use. * Can do this by either using the KotlinVersion class that was introduced in 1.1 or * via looking at the JAR's manifest versions for earlier versions. * * @return Kotlin version if any, else empty string */ private static String kotlinVersion() { String version = kotlinVersionByClass(); return version.equals("") ? kotlinVersionByJar() : version; }