Skip to content

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
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

@jhult
Copy link

jhult commented Jun 3, 2025

@zoewangg, @Fred1155 - can this be merged?

@davidh44
Copy link
Contributor Author

davidh44 commented Jun 5, 2025

@zoewangg, @Fred1155 - can this be merged?

Hi @jhult , can I ask your motivation/use-case for the version bump in the SDK? The tool can be used standalone specifying the version the SDK supports, i.e., 5.46.0

Reason for delay is we are facing difficulties with importing the newer versions of OpenRewrite dependencies internally. We hope to resolve and merge eventually but its not a priority for us at the moment.

@jhult
Copy link

jhult commented Jun 10, 2025

@davidh44, thanks for the timely response. No worries if it can't be merged now.

I was hoping it would rectify the error I am getting:

mvn --errors org.openrewrite.maven:rewrite-maven-plugin:5.46.0:dryRun -Drewrite.recipeArtifactCoordinates=software.amazon.awssdk:v2-migration:2.31.58-PREVIEW -Drewrite.activeRecipes=software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2
...

[INFO] Using active recipe(s) [software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2]
[INFO] Using active styles(s) []
line 1:94 missing ')' at '<EOF>'
line 1:88 no viable alternative at input ', String, String'
line 1:88 no viable alternative at input ', String'
line 1:88 missing ')' at '<EOF>'
[INFO] Validating active recipes...

@sullis
Copy link
Contributor

sullis commented Jun 18, 2025

any updates here?

@sullis
Copy link
Contributor

sullis commented Jul 30, 2025

is this PR still active? any updates?

@davidh44
Copy link
Contributor Author

We have bumped to rewrite-recipe-bom 3.14.0 with the GA release of our migration tool in SDK 2.34.0

@davidh44 davidh44 closed this Sep 19, 2025
@davidh44 davidh44 deleted the hdavidh/bump-openrewrite branch September 19, 2025 20:57
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.

6 participants