build.gradle.kts: simpler syntax for configuring KotlinCompile (#63)

This commit is contained in:
Jean-Michel Fayard 2020-12-08 16:54:18 +01:00 committed by GitHub
parent 5b56cbb97e
commit 6d2468914a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,10 +77,8 @@ tasks {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
listOf("compileKotlin", "compileTestKotlin").forEach {
getByName<KotlinCompile>(it) {
kotlinOptions.jvmTarget = "1.8"
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
withType<Detekt> {