From c28cf74d46c0dd28aa5b04279cf5b266203216bb Mon Sep 17 00:00:00 2001 From: Nazmul Idris Date: Fri, 12 Mar 2021 15:07:32 -0800 Subject: [PATCH] Add support for new Kotlin JVM IR Backend https://blog.jetbrains.com/kotlin/2021/02/the-jvm-backend-is-in-beta-let-s-make-it-stable-together/ --- build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 41b278f..706538c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,6 +16,14 @@ dependencies { implementation(kotlin("reflect")) } +// Enable the new Kotlin IR JVM Backend +// More info: https://blog.jetbrains.com/kotlin/2021/02/the-jvm-backend-is-in-beta-let-s-make-it-stable-together/ +tasks.withType().configureEach { + kotlinOptions { + useIR = true + } +} + // See https://github.com/JetBrains/gradle-intellij-plugin/ intellij { // Information on IJ versions https://www.jetbrains.org/intellij/sdk/docs/reference_guide/intellij_artifacts.html