From 6d2468914a4b2256dd61d535067109696086905b Mon Sep 17 00:00:00 2001 From: Jean-Michel Fayard Date: Tue, 8 Dec 2020 16:54:18 +0100 Subject: [PATCH] build.gradle.kts: simpler syntax for configuring KotlinCompile (#63) --- build.gradle.kts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b6695f7..010aab3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -77,10 +77,8 @@ tasks { sourceCompatibility = "1.8" targetCompatibility = "1.8" } - listOf("compileKotlin", "compileTestKotlin").forEach { - getByName(it) { - kotlinOptions.jvmTarget = "1.8" - } + withType { + kotlinOptions.jvmTarget = "1.8" } withType {