🎨 Use different way to set kotlin compiler options
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 3 Mar 2020 21:00:16 +0000 (22:00 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 3 Mar 2020 21:00:16 +0000 (22:00 +0100)
build.gradle

index 3f44ffa..c7c2459 100644 (file)
@@ -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"
     }