Krotick
06/07/2019, 3:10 PMbuild.gradle.kts I am having
val javaVersion = JavaVersion.VERSION_1_8
plugins {
kotlin("jvm")
}
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
Yet, I am seeing an error saying: please, recompile to 1.8, when I use static methods in interfaces. I have added the following to make it work:
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = javaVersion.toString()
}
Is there a better way?