Skip to content

Add support for Kotlin 2.x#5575

Closed
barbulescu wants to merge 60 commits intoopenrewrite:mainfrom
barbulescu:main
Closed

Add support for Kotlin 2.x#5575
barbulescu wants to merge 60 commits intoopenrewrite:mainfrom
barbulescu:main

Conversation

@barbulescu
Copy link
Copy Markdown
Contributor

@barbulescu barbulescu commented Jun 8, 2025

What's changed?

What's your motivation?

Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

Have you considered any alternatives or workarounds?

Any additional context

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

barbulescu and others added 22 commits April 26, 2025 12:04
… align with the latest API changes. Removed deprecated methods, modified method calls, and streamlined type resolution to improve code clarity and maintain compatibility with updated Kotlin FIR.
…port for Kotlin 2.1, and replaced deprecated methods. Adjusted language and API version handling to ensure compatibility with updated Kotlin standards.
@timtebeek
Copy link
Copy Markdown
Member

Gradle 9 should be interesting, as that now requires Kotlin 2.1. All the more appreciative of your efforts here!

@timtebeek timtebeek mentioned this pull request Aug 27, 2025
@e5l
Copy link
Copy Markdown

e5l commented Oct 22, 2025

Hey @barbulescu, we're looking forward to having Kotlin 2.x support 🙂.

Could you please let me know if you have any issues or require assistance?

@timtebeek
Copy link
Copy Markdown
Member

Thanks for your interest @e5l ; there's also this parallel alternative approach, where we're exploring a separate Kotlin 2 parser which more closely matches the model of the underlying compiler:

It's expected that we can take learnings from the work done here, but might have that flow into the new Kotlin 2 parser, such that we can support these two in parallel rather than a hard switch over.

@jkschneider
Copy link
Copy Markdown
Member

jkschneider commented Feb 18, 2026

Superseded by #6766. Thanks for all your work on this @barbulescu. I pulled forward a lot of your work and added you as a co-author there to respect your contribution to it!

@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants