diff --git a/build.gradle.kts b/build.gradle.kts index 8ffc5fb9478..375ed75dbcd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,7 +21,7 @@ allprojects { plugins.withId("org.jetbrains.kotlin.multiplatform") { configure { - jvmToolchain(11) + jvmToolchain(JavaLanguageVersion.of(8).asInt()) compilerOptions { freeCompilerArgs.add("-Xexpect-actual-classes") } @@ -29,7 +29,7 @@ allprojects { } plugins.withId("org.jetbrains.kotlin.jvm") { configure { - jvmToolchain(11) + jvmToolchain(JavaLanguageVersion.of(8).asInt()) compilerOptions { freeCompilerArgs.add("-Xexpect-actual-classes") } @@ -37,7 +37,7 @@ allprojects { } plugins.withId("org.jetbrains.kotlin.android") { configure { - jvmToolchain(11) + jvmToolchain(JavaLanguageVersion.of(8).asInt()) compilerOptions { freeCompilerArgs.add("-Xexpect-actual-classes") } diff --git a/paging-compose-common/build.gradle.kts b/paging-compose-common/build.gradle.kts index 2e2c884ba75..89afcbc2050 100644 --- a/paging-compose-common/build.gradle.kts +++ b/paging-compose-common/build.gradle.kts @@ -84,9 +84,8 @@ android { minSdk = 21 } - compileOptions { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 + kotlin { + jvmToolchain(JavaLanguageVersion.of(8).asInt()) } }