-
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
Boot 3 upgrade doesn't add XML Bind dependency #485
Conversation
src/testWithSpringBoot_2_7/java/org/openrewrite/java/spring/boot2/Boot3UpgradeTest.java
Outdated
Show resolved
Hide resolved
…ot2/Boot3UpgradeTest.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
src/testWithSpringBoot_2_7/java/org/openrewrite/java/spring/boot2/Boot3UpgradeTest.java
Outdated
Show resolved
Hide resolved
…ot2/Boot3UpgradeTest.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
src/testWithSpringBoot_2_7/java/org/openrewrite/java/spring/boot2/Boot3UpgradeTest.java
Outdated
Show resolved
Hide resolved
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.gradle.UpdateGradleWrapper?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne <[email protected]>
As indicated on openrewrite#517 (comment)
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.BlankLinesAroundFieldsWithAnnotations?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne <[email protected]>
Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/kLJjXlflM?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne <[email protected]>
src/testWithSpringBoot_2_7/java/org/openrewrite/java/spring/boot2/Boot3UpgradeTest.java
Outdated
Show resolved
Hide resolved
Locally I've found the test to still fail with the following, but we'll get a second opinion from CI just to be sure diff --git a/project/pom.xml b/project/pom.xml
index 4369491..f80ac0a 100644
--- a/project/pom.xml
+++ b/project/pom.xml
@@ -30,10 +30,6 @@
<artifactId>jakarta.validation-api</artifactId>
</dependency>
<dependency>
- <groupId>jakarta.xml.bind</groupId>
- <artifactId>jakarta.xml.bind-api</artifactId>
- </dependency>
- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency> |
Ok CI passes; that's an improvement! I'll see about polishing this up for addition to your tests then, and figure out what's troubling locally. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see this resolved, thanks a lot! Must help you as well to see this work on a common example case, finally.
If I understood this comment correctly we should remove the expected added dependency here again I'll go ahead and try that here. |
Thanks again @BoykoAlex ! Really great not to have those unnecessary dependencies added, and good to have a comprehensive test to guard that going forward. |
@timtebeek Thanks a lot for merging all those PRs so quickly!!! |
Of course! Really appreciated how you dove deep to get very targeted fixes with great effects downstream. |
Unit test demonstrating an issue upgrading Petclinic to Boot 3.
jakarta.xml.bind-api
dependency should be added explicitly but it's not becauserewrite-maven
dependency resolution thinks that this dependency is present on the compile scope already for some reason via transitive dependencies.