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 660ce6b
Show file tree
Hide file tree
Showing 3 changed files with 21 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"
}
}
9 changes: 9 additions & 0 deletions compose-destinations-ksp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ plugins {

apply(from = "${rootProject.projectDir}/publish.gradle")

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

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 660ce6b

Please sign in to comment.