ribesg
06/15/2022, 1:57 PM> Task :buildSrc:compileKotlin
'compileJava' task (current target is 11) and 'compileKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.
e: /Users/ribesg/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.7.0/4d09852239f61842072b40b524882fa3caaed371/kotlin-compiler-embeddable-1.7.0.jar!/META-INF/backend-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
e: /Users/ribesg/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.7.0/4d09852239f61842072b40b524882fa3caaed371/kotlin-compiler-embeddable-1.7.0.jar!/META-INF/backend.common.jvm.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
…
Dependencies of my buildSrc subproject:
dependencies {
compileOnly(gradleKotlinDsl())
implementation("com.android.tools.build:gradle:$androidGradleVersion")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlinVersion")
}
What is happening?ephemient
06/15/2022, 1:59 PMephemient
06/15/2022, 2:00 PMribesg
06/15/2022, 2:00 PMephemient
06/15/2022, 2:01 PMephemient
06/15/2022, 2:02 PMkotlin-gradle-plugin:1.7.0
works with Gradle's embedded Kotlin version, so you can update that fineephemient
06/15/2022, 2:02 PMkotlin-compiler-embeddable
should not need to be in the buildscript classpathribesg
06/15/2022, 2:02 PMkotlin-compiler-embeddable
?ephemient
06/15/2022, 2:02 PMribesg
06/15/2022, 2:02 PMribesg
06/15/2022, 2:38 PMnuhkoca
06/17/2022, 9:22 PMcompileOnly(gradleApi())
compileOnly(gradleKotlinDsl())
compileOnly(localGroovy())