Skip to content

Commit

Permalink
set kotlin jvmTarget to 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
raamcosta committed Feb 26, 2023
1 parent 0bc5e9a commit 898347c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compose-destinations-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}
4 changes: 4 additions & 0 deletions compose-destinations-ksp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ apply(from = "${rootProject.projectDir}/publish.gradle")

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"

kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
Expand Down
6 changes: 6 additions & 0 deletions playground-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ plugins {
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}

0 comments on commit 898347c

Please sign in to comment.