Skip to content

Upgrade to Kotlin 2.1.0 #45486

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

Closed
philwebb opened this issue May 9, 2025 · 0 comments
Closed

Upgrade to Kotlin 2.1.0 #45486

philwebb opened this issue May 9, 2025 · 0 comments
Assignees
Labels
theme: major-upgrade Issues relating to the major upgrades in 4.0.0 type: dependency-upgrade A dependency upgrade
Milestone

Comments

@philwebb
Copy link
Member

philwebb commented May 9, 2025

No description provided.

@philwebb philwebb added this to the 4.0.x milestone May 9, 2025
@philwebb philwebb added type: dependency-upgrade A dependency upgrade theme: major-upgrade Issues relating to the major upgrades in 4.0.0 labels May 9, 2025
philwebb pushed a commit that referenced this issue May 10, 2025
This commit upgrades to Kotlin 2.1.0. Two related dependencies have been
updated as well: Kotlin Coroutines to 1.10, and Kotlin Serialization to
1.8.

As of Kotlin 2, it is no longer possible to have a Java type and a
Kotlin type with the same name. As our code samples follow that
unfortunate pattern, this commit makes sure that the Kotlin sample code
does not depend on any of the Java counterpart and configure the kotlin
compilation plugin to ignore Java sources.

The minimum version of Gradle is 7.6.4. It bundles a version of Kotlin
that cannot compile a Kotlin build script when spring-core, compiled
with Kotlin 2.1, is on the classpath. Using Gradle 8.12 to run the DSL
tests avoids the problem.

Closes gh-45486

Co-authored-by: Andy Wilkinson <[email protected]>
@philwebb philwebb modified the milestones: 4.0.x, 4.0.0-M1 May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: major-upgrade Issues relating to the major upgrades in 4.0.0 type: dependency-upgrade A dependency upgrade
Projects
None yet
Development

No branches or pull requests

3 participants