-
Notifications
You must be signed in to change notification settings - Fork 102
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
Consider integration of openrewrite #991
Comments
My first assumption that we need to change the pom.xml to run the rewrite-maven-plugin was wrong. We can use a single command to run built-in recepies. For example: For external recepies we need to add dependencies. I am not aware how to add dependencies with mvn command. If that is possible we can wrap the whole command with some parameters. See here for more information about running recepies with openrewrite: |
After testing some ideas for integratiing Finally, we can use |
Some recipes are more complex and need a yaml file with configuration. See here. A possible structure for all files needed for rewrite plugin could look like this:
|
Questions left open after researching how to integrate rewrite into the devon ide:
After these points are discussed, we can continue with the issue. |
I don't think that we can integrate open-rewrite in the current manner of devon-ide. While built-in recipes can be run with For example:
The |
The solution of adding the plugin dependencies in Finally, the cost-benefit ratio is not worth it in my opinion to integrate the tool into the IDE. |
As long as there is no "simple" solution (handling plugin dependencies in pom.xml) to integrate this tool into the IDE, we should save this issue for future tasks. |
Co-authored-by: Tim te Beek <timtebeek@gmail.com>
The tool openrewrite allows to define "recepies" that are a description of a migration and supports applying them to a project.
This allows to automate migrations in code projects.
The ecosystem of openrewrite already offers all kind of migrations for spring and spring boot but also for maven, kuberenetes, etc.
This could entirely replace our custom build migrations (see
devon java migrate
).See also issue #226 (PR #597).
In the future we could offer migrations like e.g.
devon rewrite «recepie»
.The text was updated successfully, but these errors were encountered: