From 660ce6ba1f94e47a7400fbe93cd5f0e47ab769b9 Mon Sep 17 00:00:00 2001 From: Rafael Costa Date: Sun, 26 Feb 2023 17:53:22 +0000 Subject: [PATCH] set kotlin jvmTarget to 1.8 --- compose-destinations-codegen/build.gradle.kts | 6 ++++++ compose-destinations-ksp/build.gradle.kts | 9 +++++++++ playground-core/build.gradle.kts | 6 ++++++ 3 files changed, 21 insertions(+) diff --git a/compose-destinations-codegen/build.gradle.kts b/compose-destinations-codegen/build.gradle.kts index 2e69e1b8..e3b7d7bc 100644 --- a/compose-destinations-codegen/build.gradle.kts +++ b/compose-destinations-codegen/build.gradle.kts @@ -9,3 +9,9 @@ java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } + +tasks.withType().configureEach { + kotlinOptions { + jvmTarget = "1.8" + } +} diff --git a/compose-destinations-ksp/build.gradle.kts b/compose-destinations-ksp/build.gradle.kts index 77989032..f4a77b44 100644 --- a/compose-destinations-ksp/build.gradle.kts +++ b/compose-destinations-ksp/build.gradle.kts @@ -4,8 +4,17 @@ plugins { apply(from = "${rootProject.projectDir}/publish.gradle") +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} + tasks.withType().configureEach { kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn" + + kotlinOptions { + jvmTarget = "1.8" + } } dependencies { diff --git a/playground-core/build.gradle.kts b/playground-core/build.gradle.kts index e8259cee..6f573533 100644 --- a/playground-core/build.gradle.kts +++ b/playground-core/build.gradle.kts @@ -6,4 +6,10 @@ plugins { java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 +} + +tasks.withType().configureEach { + kotlinOptions { + jvmTarget = "1.8" + } } \ No newline at end of file