For some reason, I get this warning when the application starts:
warning: some JAR files in the classpath have the Runtime Kotlin library embedded in them. This can cause debugging problems if another version of the Kotlin runtime library exists in CLASSPATH. Consider removing these libraries from the class path or using '-Xskip-runtime-version-check' to suppress this warning: the library comes with Kotlin runtime
I use Gradle to build my application using a dependency kotlin-script-util, which, as I noticed, has a dependency on kotlin-script-runtime, which, as I understand it, was a problem. Thus, I excluded this dependency in Gradle as follows:
compile(group: 'org.jetbrains.kotlin', name: 'kotlin-script-util', version: kotlin_version) {
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-script-runtime'
}
Sorry, no dice. Does anyone know how to get rid of this warning? -Xskip-runtime-version-checknot an option for my use.
source
share