<@U24SP70JK> ``` import org.jetbrains.kotlin.gradl...
# gradle
s
@timriemer
Copy code
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
....
tasks.withType<KotlinCompile> {
    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_1_8.toString()
    }
}
t
Thank you
Tried it with val compileKotlin by tasks compileKotlin.apply { ... }
s
Be careful, compileKotlin is not used for compiling tests
So
tasks.withType<KotlinCompile>
is probably a better option
t
The approach with compileKotlin by tasks and ..apply isn't working anyway. kotlinOptions is not found, so I changed it to @suresh answer.
Was the last part missing for my GSK talk at JavaLand conference tomorrow
s
@timriemer would the talk be recorded ?
t
Don't think so and it will be in German 🙂