Skip to content

Commit c4c9627

Browse files
committed
GH-10159: Upgrade to Kotlin 2.2.0
Fixes: #10159 * Pin `apiVersion` & `languageVersion` for Kotlin compile Gradle tasks to `KotlinVersion.KOTLIN_2_2` * Add `freeCompilerArgs = [ '-Xannotation-default-target=param-property' ]` property
1 parent f4b61cd commit c4c9627

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlinVersion = '2.1.21'
2+
ext.kotlinVersion = '2.2.0'
33
ext.isCI = System.getenv('GITHUB_ACTION')
44
repositories {
55
gradlePluginPortal()
@@ -242,9 +242,12 @@ configure(javaProjects) { subproject ->
242242

243243
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask).configureEach {
244244
compilerOptions {
245+
apiVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_2
246+
languageVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_2
245247
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
246248
javaParameters = true
247249
allWarningsAsErrors = true
250+
freeCompilerArgs = [ '-Xannotation-default-target=param-property' ] // Upcoming default, see https://youtrack.jetbrains.com/issue/KT-73255
248251
}
249252
}
250253

0 commit comments

Comments
 (0)