Skip to content

Add merge parameter to ChangePluginConfiguration recipe #5650

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrakshith21
Copy link
Contributor

@mrakshith21 mrakshith21 commented Jun 21, 2025

What's changed?

Added merge parameter to ChangePluginConfiguration recipe

What's your motivation?

Also, I have a couple of plugin related upgrades for java 21 upgrade for which this feature would help. I would like to contribute those after this.

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

The implementation goes through tags directly mentioned in the argument, and calls addOrupdateChild on them - new values will be merged and matching ones will be overridden. I have not done a recursive check, but let me know if that was the intended solution mentioned by @timtebeek in the issue linked. Atleast the ones I have in mind for the java 21 upgrade do not require a recursive check. Thanks!

Anyone you would like to review specifically?

@timtebeek

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

@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Jun 21, 2025
@timtebeek timtebeek moved this from In Progress to Ready to Review in OpenRewrite Jun 23, 2025
@mrakshith21 mrakshith21 force-pushed the enhance-change-plugin-configuration-recipe branch from 36b5e76 to 7227ed2 Compare July 1, 2025 16:46
@mrakshith21
Copy link
Contributor Author

@timtebeek any comments?

@mrakshith21 mrakshith21 force-pushed the enhance-change-plugin-configuration-recipe branch from 7227ed2 to 2be74a6 Compare July 2, 2025 12:04
@timtebeek timtebeek self-requested a review July 2, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready to Review
Development

Successfully merging this pull request may close these issues.

1 participant