-
Notifications
You must be signed in to change notification settings - Fork 83
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
UpgradeSpringBoot_3_3 setting wrong Spring Cloud version #537
Comments
Thanks for reporting this issue here as well! Good to track this going forward. As indicated previously, there should be no reason why change is missing, as the recipes are chained back to back. 🤔 |
Hi @timbuethe and @timtebeek, Have tried to reproduce the issue and here is my observation, in fact it is working fine and changing the spring cloud version to
And then executed dryRun it is here is the outcome with rewrite.patch file where spring cloud version has been changed to
See spring cloud version has been migrated to @timbuethe I hope that helps, could you please try from your side and let me know your thoughts. If it is working fine, we can close this issue. Thanks, |
Thanks a lot @bsmahi ! Very helpful to know that it's working in your case, so it's not inherent to the recipes themselves, but something perhaps with the specific project at hand. |
Yes, I can confirm that it is working as expected when removing the That's very unfortunate, as our original plan was to automate the updates for a large number of services. If we can not trust a successful run and need to double check versions etc. it will be a lot of manual effort. |
That's a very unexpected interplay there with that Mockito version; rest assured that we very much want to see this resolved, as running across a lot of repositories is core to what we do at Moderne. I wonder if we can reduce this to a unit test to be able to test this more easily, and guarantee that it's fixed going forward. |
…a, spring and spring cloud version updates
I created this PR, setting up Spring Boot 3.3 tests and adding a test case for the problem described above. I wasn't sure if the test should execute |
…Element NoClassDefFoundException
…nd spring cloud version updates (#539) * #537 add test case for UpgradeSpringBoot_3_3 expecting java, spring and spring cloud version updates * #537 add jaxb-api to prevent javax.xml.bind.annotation.XmlElement NoClassDefFoundException * #537 apply patch from PR to fix formatting and set expected cycles: 2 #539 (comment)
I am using
I am using the Maven plugin, and my project is a single module project.
What did you expect to see / What did you see instead?
When running
org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_2
Spring Cloud version is set to2023.0.2
, as expected.But if we run
org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3
instead, the version is set to2021.0.9
.example project to reproduce the issue:
OpenRewriteSpringCloudMigration.zip
The text was updated successfully, but these errors were encountered: