diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a8379209..5201d28a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -36,11 +36,10 @@ android { compose = true buildConfig = true } - java { - toolchain { - languageVersion = JavaLanguageVersion.of(11) - } - } +} + +kotlin { + jvmToolchain(11) } dependencies { diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index de548157..6cea0706 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -26,16 +26,12 @@ android { warningsAsErrors = true abortOnError = true } - java { - toolchain { - languageVersion = JavaLanguageVersion.of(11) - } - } } version = "1.2" kotlin { + jvmToolchain(11) // https://kotlinlang.org/docs/multiplatform-expect-actual.html#expected-and-actual-classes // To suppress this warning about usage of expected and actual classes @OptIn(ExperimentalKotlinGradlePluginApi::class)