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