🎨 Use different way to set kotlin compiler options
[Sone.git] / 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'
 
 plugins {
     id 'org.jetbrains.kotlin.jvm' version '1.3.70'
@@ -22,7 +23,7 @@ tasks.withType(JavaCompile) {
        options.encoding = 'UTF-8'
 }
 
        options.encoding = 'UTF-8'
 }
 
-compileKotlin {
+tasks.withType(KotlinCompile) {
     kotlinOptions {
         jvmTarget = "1.8"
     }
     kotlinOptions {
         jvmTarget = "1.8"
     }