Skip to content

Commit

Permalink
Set default jvmTarget to 1.8 (#1879)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyTsvetkov committed Feb 21, 2022
1 parent 1254a30 commit 91fdcb8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ subprojects {
}

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

plugins.withId("maven-publish") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class ComposePlugin : Plugin<Project> {
project.tasks.withType(KotlinCompile::class.java) {
it.kotlinOptions.apply {
if (overrideDefaultJvmTarget) {
jvmTarget = "11".takeIf { jvmTarget.toDouble() < 11 } ?: jvmTarget
jvmTarget = "1.8".takeIf { jvmTarget.toDouble() < 1.8 } ?: jvmTarget
}
useIR = true
}
Expand Down
6 changes: 0 additions & 6 deletions web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ subprojects {
}
}



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

pluginManager.withPlugin("maven-publish") {
configure<PublishingExtension> {
repositories {
Expand Down

0 comments on commit 91fdcb8

Please sign in to comment.