-
Notifications
You must be signed in to change notification settings - Fork 288
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
"Add Maven Parent" recipe #4239
Comments
hi @rcsilva83 ! Thanks for the suggestion. For this one I'd assume the implementation would be rather similar to Change Maven Parent
Perhaps we can start with a draft PR with some unit tests, and then I'll help guide you through what's needed beyond that. Tests are also a great way to think through and codify how you'd want to handle certain cases, like:
|
Hi @timtebeek I'm trying to build the project on my machine but I'm having issues:
I'm running with JDK21 but it I run with JDK17 I have the same problem with Can you help me with this? |
hi! That's curious; are you using any non standard paths for your installed JDKs? I know Gradle does some discovery that might fail to detect your JDK paths. You might be able to work around this though by following these instructions to not load troublesome modules: Lines 1 to 7 in 28e7b12
We also have some more general IDE setup instructions on these pages.
Hope that helps! |
What problem are you trying to solve?
I need to add a parent POM to my projects.
Describe the solution you'd like
I'd like a recipe for that as there already has one for changing the Maven parent.
Have you considered any alternatives or workarounds?
Using text recipe
Additional context
Are you interested in contributing this feature to OpenRewrite?
I can try :)
The text was updated successfully, but these errors were encountered: