Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support for migrating Kotlin application#448

Answeredbyfabapp2
yong-at-zettle asked this question inQ&A
Discussion options

Hi,
Is there a plan to support migrating Kotlin application? Thanks!

Cheers,
Yong

You must be logged in to vote

Unfortunatelly no, not yet.
As parsing and AST modifications rely solely on OpenRewrite this depends on the current Kotlin support in OpenRewrite. OpenRewrite has support for Kotlin but I am not sure about the coverage. Theoretically, it means the same as with Gradle support butJavaSource as base-interface and something likeOpenRewriteKotlinSource as implementation. And most likely some roadblocks I am naively ignoring now.

Replies: 2 comments 3 replies

Comment options

Hi,

Is there a plan to support migrating Kotlin application? Thanks!

Cheers,

Yong

Hi@yong-at-zettle!

Thanks for your interest.
Unfortunatelly Gradle is not yet supported. It would be possible but require more OpenRewrite Recipes modifying the Gralde files to apply the same modifications for Gradle as currently offered by BuildFile and imlemented in OpenRewriteMavenBuildFile for Maven. These must should go as contributions into OpenRewrite and then be used in a OpenRewriteGradleBuildFile also implementing BuildFile. (...and solving roadblocks on the way)
In case you'd be interested to look into this and maybe contribute something, please let us know.

You must be logged in to vote
2 replies
@yong-at-zettle
Comment options

Thanks for the reply,@fabapp2 !
Actually I intended to ask the support of migrating a project with Kotlin + Maven setup. But since OpenRewrite focuses on Java and spring-boot-migrator is based on OpenRewrite, hence it limits the support for Kotlin + Maven setup, right?
Cheers,
Yong

@fabapp2
Comment options

Sorry@yong-at-zettle!
It was from my mobile and I just realized your question was about Kotlin. 🤣 🙈

Comment options

Unfortunatelly no, not yet.
As parsing and AST modifications rely solely on OpenRewrite this depends on the current Kotlin support in OpenRewrite. OpenRewrite has support for Kotlin but I am not sure about the coverage. Theoretically, it means the same as with Gradle support butJavaSource as base-interface and something likeOpenRewriteKotlinSource as implementation. And most likely some roadblocks I am naively ignoring now.

You must be logged in to vote
1 reply
@yong-at-zettle
Comment options

Good to know. Thanks,@fabapp2 !

Cheers,
Yong

Answer selected byyong-at-zettle
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@yong-at-zettle@fabapp2

[8]ページ先頭

©2009-2025 Movatter.jp