[stdlib] Set AV to 2.0, LV to 1.9 for main compilations, build tests with K2

This commit is contained in:
Ilya Gorbunov
2024-02-20 03:38:22 +01:00
committed by Space Team
parent 6152022838
commit 0ecbbbf1ca
7 changed files with 38 additions and 10 deletions
@@ -148,6 +148,8 @@ kotlin {
}
tasks.withType<KotlinCompile<*>> {
kotlinOptions.languageVersion = "1.9"
kotlinOptions.apiVersion = "2.0"
kotlinOptions.freeCompilerArgs += listOf(
"-Xallow-kotlin-package",
"-Xexpect-actual-classes",
@@ -156,6 +158,7 @@ tasks.withType<KotlinCompile<*>> {
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-opt-in=kotlin.ExperimentalStdlibApi",
"-Xsuppress-api-version-greater-than-language-version-error",
)
}