-
Notifications
You must be signed in to change notification settings - Fork 36
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
Integration of OpenRewrite #1031
Comments
Thank you @hohwille . Below I listed some topics to discuss:
So here are my suggestions:
|
after the conversation on Friday, Feb 21st, we reached these agreements:
|
Generally speaking, these parts need to be done:
|
Generally speaking, what we need to do are:
The second step involves a pre-processor of the interpretation of the input. Since there might be more such pre-processors in the future, it might be helpful to add a feature to integrate some Auto-Discovery-and-Registration features like the Spring framework, by which such processors will be loaded automatically.
|
As a IDEasy user, I want to be able to run OpenRewrite on my project so that I can refactor and modernize my code.
I would like that IDEasy offers shortcuts and easier syntax for common use-cases (recipes) since usage of OpenRewrite is rather complex.
Example/Idea:
ide rewrite assertj
would trigger all recipes that migrate to AssertJ (e.g. hamcrest to AssertJ and JUnit to AssertJ)Still I could run a full recipe like:
ide rewrite org.openrewrite.java.testing.hamcrest.HamcrestMatcherToAssertJ
for the single recipe as a shortcut forFor recipes we newer knew about and do not have supported in our code, we still need a generic usage:
However, the cool thing would be to have support for known recipes in our code so we can ommit
--artifact=...
option and make things much easier.Then we define short names for recipes or groups of recipes like suggested with
ide rewrite assertj
that would technically runAND
Theoretically if
REWRITE_VERSION
is set to an explicit version, we could omit-U
and specify the explicit version of open-rewriteorg.openrewrite.maven:rewrite-maven-plugin:«version»:run
The text was updated successfully, but these errors were encountered: