You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Build] Configure API/language version 1.7 for Gradle plugins
Also fixes part of deprecation warnings so that project sync passes.
The rest is disabled to be fixed in the next commits
Note that even though we could use language version 1.8, it's preferrable to have it exactly the same as the bundled compiler for Gradle Kotlin scripts for more reliable compatibility.
^KT-72329 In Progress
Copy file name to clipboardExpand all lines: repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/GradleCommon.kt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -545,10 +545,10 @@ fun Project.configureKotlinCompileTasksGradleCompatibility() {
545
545
compilerOptions {
546
546
if (!kotlinBuildProperties.isInJpsBuildIdeaSync) {
547
547
// check https://docs.gradle.org/current/userguide/compatibility.html#kotlin for Kotlin-Gradle versions matrix
548
-
@Suppress("DEPRECATION", "DEPRECATION_ERROR") // we can't use language version greater than 1.5 as minimal supported Gradle embeds Kotlin 1.4
549
-
languageVersion.set(KotlinVersion.KOTLIN_1_5)
550
-
@Suppress("DEPRECATION", "DEPRECATION_ERROR") // we can't use api version greater than 1.4 as minimal supported Gradle version uses kotlin-stdlib 1.4
551
-
apiVersion.set(KotlinVersion.KOTLIN_1_4)
548
+
@Suppress("DEPRECATION", "DEPRECATION_ERROR") // we can't use language version greater than 1.8 as our minimal supported Gradle 7.6 embeds Kotlin 1.7.10
549
+
languageVersion.set(KotlinVersion.KOTLIN_1_7)
550
+
@Suppress("DEPRECATION", "DEPRECATION_ERROR") // we can't use api version greater than 1.7 as our minimal supported Gradle version 7.6 uses kotlin-stdlib 1.7
0 commit comments