File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
build-logic/src/main/kotlin Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+
1
2
import com.android.build.gradle.BaseExtension
2
3
import compat.patrouille.configureJavaCompatibility
3
4
import compat.patrouille.configureKotlinCompatibility
4
- import org.gradle.api.JavaVersion
5
5
import org.gradle.api.Project
6
- import org.gradle.api.plugins.JavaPluginExtension
7
- import org.gradle.api.tasks.compile.JavaCompile
8
6
import org.gradle.api.tasks.testing.Test
9
7
import org.gradle.jvm.toolchain.JavaLanguageVersion
10
8
import org.gradle.jvm.toolchain.JavaToolchainService
11
- import org.jetbrains.kotlin.gradle.dsl.JvmTarget
12
9
import org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension
13
10
import org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerOptions
14
11
import org.jetbrains.kotlin.gradle.dsl.KotlinJsCompilerOptions
@@ -28,6 +25,9 @@ fun KotlinCommonCompilerOptions.configure(
28
25
) {
29
26
freeCompilerArgs.add(" -Xexpect-actual-classes" )
30
27
28
+ // Suppress "Language version 1.9 is deprecated and its support will be removed in a future version of Kotlin"
29
+ freeCompilerArgs.add(" -Xsuppress-version-warnings" )
30
+
31
31
optIns.forEach {
32
32
freeCompilerArgs.add(" -opt-in=$it " )
33
33
}
Original file line number Diff line number Diff line change @@ -50,5 +50,8 @@ tasks.withType(KotlinCompilationTask::class.java).configureEach {
50
50
compilerOptions {
51
51
apiVersion.set(KotlinVersion .KOTLIN_1_9 )
52
52
languageVersion.set(KotlinVersion .KOTLIN_1_9 )
53
+
54
+ // Suppress "Language version 1.9 is deprecated and its support will be removed in a future version of Kotlin"
55
+ freeCompilerArgs.add(" -Xsuppress-version-warnings" )
53
56
}
54
57
}
You can’t perform that action at this time.
0 commit comments