Skip to content

Bump OpenRewrite to 3.6.1 #6072

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 3 commits into
base: master
Choose a base branch
from
Open

Bump OpenRewrite to 3.6.1 #6072

wants to merge 3 commits into from

Conversation

davidh44
Copy link
Contributor

@davidh44 davidh44 commented Apr 29, 2025

Motivation and Context

Continuation of #6040 to bump rewrite-recipe-bom to 3.6.1 (OpenRewrite v8.50.2)

Cannot bump to to latest 3.7.0 as JavaType.Method constructors were dropped, requires further refactoring in SDK recipes

Modifications

  • Remove forked recipe ChangeMethodInvocationReturnType and use OpenRewrite one
  • Remove adding L to content length arg in RequestBody.fromInputStream() as it is not necessary and breaks with the version bump
  • Bump Maven integ tests to use rewrite-maven-plugin 6.6.0
  • Bump Gradle integ tests to use rewrite-gradle-plugin 7.4.1

Testing

Ran end to end tests

@davidh44 davidh44 requested a review from a team as a code owner April 29, 2025 01:39
Comment on lines 34 to 35
@Disabled("With OpenRewrite version bump, unit tests fail when ExecutionContext#putMessage is used with multiple recipes "
+ "(invoked in HttpSettingsToHttpClient)")

Choose a reason for hiding this comment

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

You don't have to disable the entire test; you can disable that particular validation step instead through TypeValidation:
https://github.com/openrewrite/rewrite/blob/e84018e2dfc38578eb6c7d5930b6c04002f18627/rewrite-test/src/main/java/org/openrewrite/test/TypeValidation.java#L113-L118

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Worked, thanks Tim!

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
54.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

4 participants