Skip to content

Commit

Permalink
Fix indy setup (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers authored Jan 8, 2021
1 parent c724ef2 commit 0057137
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -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()
}
}
}

Expand Down

0 comments on commit 0057137

Please sign in to comment.