From 00571374a30aa49354b6c2c9160e9e52ad467f18 Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Fri, 8 Jan 2021 18:35:55 -0500 Subject: [PATCH] Fix indy setup (#37) --- sample/build.gradle | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/sample/build.gradle b/sample/build.gradle index 1569bae7..53768589 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -1,18 +1,15 @@ apply plugin: 'org.jetbrains.kotlin.jvm' apply plugin: 'dev.zacsweers.redacted.redacted-gradle-plugin' -if (JavaVersion.current().java9Compatible) { - println "Enabling string-concat" - compileKotlin { - kotlinOptions { - freeCompilerArgs = freeCompilerArgs + "-Xstring-concat=indy-with-constants" - } - } -} compileKotlin { kotlinOptions { useIR = hasProperty("useIR") && Boolean.parseBoolean(property("useIR")) + if (JavaVersion.current().java9Compatible) { + println "Enabling string-concat" + freeCompilerArgs += "-Xstring-concat=indy-with-constants" + jvmTarget = JavaVersion.current().toString() + } } }