Skip to content

Commit 660ce6b

Browse files
committed
set kotlin jvmTarget to 1.8
1 parent 0bc5e9a commit 660ce6b

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

compose-destinations-codegen/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ java {
99
sourceCompatibility = JavaVersion.VERSION_1_8
1010
targetCompatibility = JavaVersion.VERSION_1_8
1111
}
12+
13+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
14+
kotlinOptions {
15+
jvmTarget = "1.8"
16+
}
17+
}

compose-destinations-ksp/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,17 @@ plugins {
44

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

7+
java {
8+
sourceCompatibility = JavaVersion.VERSION_1_8
9+
targetCompatibility = JavaVersion.VERSION_1_8
10+
}
11+
712
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
813
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
14+
15+
kotlinOptions {
16+
jvmTarget = "1.8"
17+
}
918
}
1019

1120
dependencies {

playground-core/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ plugins {
66
java {
77
sourceCompatibility = JavaVersion.VERSION_1_8
88
targetCompatibility = JavaVersion.VERSION_1_8
9+
}
10+
11+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
12+
kotlinOptions {
13+
jvmTarget = "1.8"
14+
}
915
}

0 commit comments

Comments
 (0)