Skip to content

Commit 70e95ed

Browse files
committed
Upgrade Kotlin to 2.2.0
Signed-off-by: Dmitry Sulman <dmitry.sulman@gmail.com>
1 parent 4384a54 commit 70e95ed

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

buildSrc/src/main/kotlin/conventions.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.gradle.accessors.dm.LibrariesForLibs
2+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23
import org.jlleitschuh.gradle.ktlint.KtlintExtension
34

45
plugins {
@@ -56,7 +57,13 @@ tasks.build {
5657
dependsOn(tasks.jacocoTestReport)
5758
}
5859

59-
tasks.withType<Test>().configureEach {
60+
tasks.withType<KotlinCompile> {
61+
compilerOptions {
62+
freeCompilerArgs.set(listOf("-Xannotation-default-target=param-property"))
63+
}
64+
}
65+
66+
tasks.withType<Test> {
6067
useJUnitPlatform()
6168
}
6269

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ java = "17"
66
jreleaser = "1.18.0"
77
junit = "5.13.1"
88
kotest = "5.9.1"
9-
kotlin = "2.1.21"
9+
kotlin = "2.2.0"
1010
kotlinxCoroutines = "1.10.2"
1111
ktlint = "1.6.0"
1212
ktlintPlugin = "12.3.0"

0 commit comments

Comments
 (0)