eygraber
05/20/2021, 10:52 PMtasks.withType(KotlinJvmCompile::class).configureEach {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
kotlinOptions {
jvmTarget = "11"
}
}
and
android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "11"
}
}
when using the kotlin-android
plugin?plastiv
05/21/2021, 3:06 AMkotlin-stdlib
instead of kotlin-stdlib-jdk11
. Since there is a little practical difference between two I haven’t investigated further what actually happens.
Was checking with ./gradlew :apk-module:dependencies --configuration releaseRuntimeClasspath
tapchicoma
05/21/2021, 7:43 AMAlexander.Likhachev
05/21/2021, 9:10 AMsourceCompatibility
and targetCompatibility
is the properties coming from JavaCompile
task rather than KotlinJvmCompile
eygraber
05/21/2021, 4:00 PMandroid.compileOptions
wouldn't make sense for a 100% Kotlin project?