diff --git a/components/build.gradle.kts b/components/build.gradle.kts index 7095180735..d90277a9c0 100644 --- a/components/build.gradle.kts +++ b/components/build.gradle.kts @@ -22,7 +22,7 @@ subprojects { } tasks.withType() { - kotlinOptions.jvmTarget = "11" + kotlinOptions.jvmTarget = "1.8" } plugins.withId("maven-publish") { diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt index 6e8ffff4ba..0cf035b8ab 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposePlugin.kt @@ -131,7 +131,7 @@ class ComposePlugin : Plugin { 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 } diff --git a/web/build.gradle.kts b/web/build.gradle.kts index c0b5938ed2..e6367e4a94 100644 --- a/web/build.gradle.kts +++ b/web/build.gradle.kts @@ -52,12 +52,6 @@ subprojects { } } - - - tasks.withType() { - kotlinOptions.jvmTarget = "11" - } - pluginManager.withPlugin("maven-publish") { configure { repositories {