Skip to content

feat: add OpenRewrite module for migrations and recipe for 5.3.0#3236

Open
csviri wants to merge 9 commits intooperator-framework:mainfrom
csviri:migration-or
Open

feat: add OpenRewrite module for migrations and recipe for 5.3.0#3236
csviri wants to merge 9 commits intooperator-framework:mainfrom
csviri:migration-or

Conversation

@csviri
Copy link
Collaborator

@csviri csviri commented Mar 17, 2026

  • OpenRewrite migration
  • wip
  • wip
  • wip

csviri added 4 commits March 15, 2026 21:38
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Copilot AI review requested due to automatic review settings March 17, 2026 11:55
@openshift-ci openshift-ci bot requested review from metacosm and xstefank March 17, 2026 11:55
@csviri csviri changed the title Add OpenRewrite module for migrations feat: add OpenRewrite module for migrations Mar 17, 2026
@csviri csviri changed the title feat: add OpenRewrite module for migrations feat: add OpenRewrite module for migrations and recipe for 5.3.0 Mar 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new migration module to the Java Operator SDK project, providing OpenRewrite recipes to automate migration from v5.2 to v5.3. The recipes handle dependency version upgrades, artifact renames, Metrics API method renames, and removal of deprecated method invocations.

Changes:

  • New migration Maven module with OpenRewrite recipe definitions for v5.2→v5.3 migration (JUnit module rename, Metrics method renames, version upgrade, monitorSizeOf removal)
  • Test class V53MigrationTest validating the Maven artifact rename and Metrics method rename recipes
  • Documentation update adding OpenRewrite usage instructions to the v5.3 migration guide

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pom.xml Adds the new migration module to the reactor build
migration/pom.xml New module POM with OpenRewrite dependencies for recipe authoring and testing
migration/src/main/resources/META-INF/rewrite/v5-3-migration.yml OpenRewrite recipe definitions for v5.3 migration
migration/src/test/java/.../V53MigrationTest.java Tests for the JUnit module rename and Metrics method rename recipes
docs/content/en/docs/migration/v5-3-migration.md Adds OpenRewrite automated migration instructions

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +103 to +104

default void reconciliationFinished(Object resource, RetryInfo retryInfo, Map<String, Object> metadata) {}
}
}
"""));
}
csviri added 5 commits March 17, 2026 12:58
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants