https://kotlinlang.org logo
#getting-started
Title
# getting-started
n

niqo01

06/28/2022, 10:41 PM
My project builds successfully in Kotlin 1.6.21. When upgrading to Kotlin 1.7.0 I get:
[error] Compliance level '1.4' is incompatible with target level '11'. A compliance level '11' or better is required.
It 's a simple gradle kotlin("jvm") project with:
Copy code
java {
    sourceCompatibility = JavaVersion.VERSION_11
    targetCompatibility = JavaVersion.VERSION_11
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
    kotlinOptions.jvmTarget = "11"
}
I have no idea what Compliance level is
i

itnoles

06/29/2022, 4:56 AM
it may be looking at the wrong JDK Version on Intelij IDEA
n

niqo01

06/29/2022, 4:54 PM
it was an aspectj plugin bug. Sorry for the wrong channel: https://github.com/freefair/gradle-plugins/issues/559
3 Views