File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
buildSrc/src/main/java/org/springframework/build
modules/ROOT/pages/languages/kotlin Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,17 @@ void apply(Project project) {
34
34
35
35
private void configure (KotlinCompile compile ) {
36
36
compile .compilerOptions (options -> {
37
- options .getApiVersion ().set (KotlinVersion .KOTLIN_2_1 );
38
- options .getLanguageVersion ().set (KotlinVersion .KOTLIN_2_1 );
37
+ options .getApiVersion ().set (KotlinVersion .KOTLIN_2_2 );
38
+ options .getLanguageVersion ().set (KotlinVersion .KOTLIN_2_2 );
39
39
options .getJvmTarget ().set (JvmTarget .JVM_17 );
40
40
options .getJavaParameters ().set (true );
41
41
options .getAllWarningsAsErrors ().set (true );
42
42
options .getFreeCompilerArgs ().addAll (
43
43
"-Xsuppress-version-warnings" ,
44
44
"-Xjsr305=strict" , // For dependencies using JSR 305
45
45
"-opt-in=kotlin.RequiresOptIn" ,
46
- "-Xjdk-release=17" // Needed due to https://youtrack.jetbrains.com/issue/KT-49746
46
+ "-Xjdk-release=17" , // Needed due to https://youtrack.jetbrains.com/issue/KT-49746
47
+ "-Xannotation-default-target=param-property" // Upcoming default, see https://youtrack.jetbrains.com/issue/KT-73255
47
48
);
48
49
});
49
50
}
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ repositories {
46
46
// To avoid a redeclaration error with Kotlin compiler
47
47
tasks. named(' compileKotlin' , KotlinCompilationTask . class) {
48
48
javaSources. from = []
49
+ compilerOptions. freeCompilerArgs = [ " -Xannotation-default-target=param-property" ] // Upcoming default, see https://youtrack.jetbrains.com/issue/KT-73255
49
50
}
50
51
51
52
dependencies {
Original file line number Diff line number Diff line change 2
2
= Requirements
3
3
:page-section-summary-toc: 1
4
4
5
- Spring Framework supports Kotlin 2.1 + and requires
5
+ Spring Framework supports Kotlin 2.2 + and requires
6
6
https://search.maven.org/artifact/org.jetbrains.kotlin/kotlin-stdlib[`kotlin-stdlib`]
7
7
and https://search.maven.org/artifact/org.jetbrains.kotlin/kotlin-reflect[`kotlin-reflect`]
8
8
to be present on the classpath. They are provided by default if you bootstrap a Kotlin project on
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ org.gradle.caching=true
4
4
org.gradle.jvmargs =-Xmx2048m
5
5
org.gradle.parallel =true
6
6
7
- kotlinVersion =2.2.0-RC2
7
+ kotlinVersion =2.2.0
8
8
9
9
kotlin.jvm.target.validation.mode =ignore
10
10
kotlin.stdlib.default.dependency =false
You can’t perform that action at this time.
0 commit comments