-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Kotlin 2.x and set a new related baseline #33629
Comments
As a preparation to using a Kotlin 2 baseline, this commit stops using Java code snippets in Kotlin ones in order to avoid redeclaration errors. See spring-projectsgh-33629
Do we know the earliest Spring Boot public release that will contain this issue and the expected timeline for it? |
Yes, it will be Spring Boot 4.0 that should be available towards in end of 2025 as mentioned in this announcement. That said, it should be possible to use Kotlin 2 with Spring Boot 3 and Spring Framework 6, but you should pay attention to dependency management. |
We are using Kotlin 2 with SB 3.4 without any issues. |
Spring Framework 7 will use Kotlin 2.x as a new baseline, TBD if we use 2.0, 2.1, 2.2 or 2.3 as the minimal version supported, this kind of decision could be driven by #21546 requirements.
Kotlin Serialization and Kotlin Coroutines should be upgraded accordingly, related upgrade issue will be created when it is clearer what version we will use.
The text was updated successfully, but these errors were encountered: