[stdlib] Set AV to 2.0, LV to 1.9 for main compilations, build tests with K2
This commit is contained in:
committed by
Space Team
parent
6152022838
commit
0ecbbbf1ca
@@ -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",
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user