From: David ‘Bombe’ Roden Date: Tue, 3 Mar 2020 21:00:16 +0000 (+0100) Subject: 🎨 Use different way to set kotlin compiler options X-Git-Tag: v82^2~43 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6918253e33ff37683d3549208bd0b126942a9508;p=Sone.git 🎨 Use different way to set kotlin compiler options --- diff --git a/build.gradle b/build.gradle index 3f44ffa..c7c2459 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,4 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id 'org.jetbrains.kotlin.jvm' version '1.3.70' @@ -22,7 +23,7 @@ tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } -compileKotlin { +tasks.withType(KotlinCompile) { kotlinOptions { jvmTarget = "1.8" }