diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-05-03 01:48:16 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 20:18:16 +0000 |
commit | c555609f164eb5245eb1cceb3fe22ec1d258ec5d (patch) | |
tree | 2a3dd02158fccfff2d92fe9c3ff433758a141076 /build-logic | |
parent | 07a83a33b878791257d1aa2282e71c1d2f301254 (diff) |
Misc cleanups (#1891)
Diffstat (limited to 'build-logic')
-rw-r--r-- | build-logic/android-plugins/build.gradle.kts | 5 | ||||
-rw-r--r-- | build-logic/automation-plugins/build.gradle.kts | 5 | ||||
-rw-r--r-- | build-logic/kotlin-plugins/build.gradle.kts | 5 |
3 files changed, 12 insertions, 3 deletions
diff --git a/build-logic/android-plugins/build.gradle.kts b/build-logic/android-plugins/build.gradle.kts index ac70bec8..1ffce784 100644 --- a/build-logic/android-plugins/build.gradle.kts +++ b/build-logic/android-plugins/build.gradle.kts @@ -17,7 +17,10 @@ afterEvaluate { } tasks.withType<KotlinCompile>().configureEach { - kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } + kotlinOptions { + jvmTarget = JavaVersion.VERSION_11.toString() + freeCompilerArgs = freeCompilerArgs + "-Xsam-conversions=class" + } } } diff --git a/build-logic/automation-plugins/build.gradle.kts b/build-logic/automation-plugins/build.gradle.kts index 8ec63671..83b89079 100644 --- a/build-logic/automation-plugins/build.gradle.kts +++ b/build-logic/automation-plugins/build.gradle.kts @@ -17,7 +17,10 @@ afterEvaluate { } tasks.withType<KotlinCompile>().configureEach { - kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } + kotlinOptions { + jvmTarget = JavaVersion.VERSION_11.toString() + freeCompilerArgs = freeCompilerArgs + "-Xsam-conversions=class" + } } } diff --git a/build-logic/kotlin-plugins/build.gradle.kts b/build-logic/kotlin-plugins/build.gradle.kts index 5fd5ba0c..6d2606ed 100644 --- a/build-logic/kotlin-plugins/build.gradle.kts +++ b/build-logic/kotlin-plugins/build.gradle.kts @@ -17,7 +17,10 @@ afterEvaluate { } tasks.withType<KotlinCompile>().configureEach { - kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() } + kotlinOptions { + jvmTarget = JavaVersion.VERSION_11.toString() + freeCompilerArgs = freeCompilerArgs + "-Xsam-conversions=class" + } } } |