-
Notifications
You must be signed in to change notification settings - Fork 77
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
Running `org.openrewrite.java.migrate.UpgradeToJava21
should not downgrade jakarta.inject-api
dependency, should it?
#394
Comments
Passed on to the team, thanks!
Indeed we ought not to downgrade that dependency; it looks like we might be doing so here rewrite-migrate-java/src/main/resources/META-INF/rewrite/add-inject-dependencies.yml Lines 28 to 40 in 848d013
|
We also have these dependencies changed in the recipes here rewrite-migrate-java/src/main/resources/META-INF/rewrite/jakarta-ee-9.yml Lines 439 to 448 in 848d013
|
It looks like this is the hierarchy through which the dependency is updated from Java 21: It looks like jakarta-ee-9 is not run as part of a Java 21 upgrade: |
I ran
org.openrewrite.java.migrate.UpgradeToJava21
in moderne.io (https://app.moderne.io/results/gIKdjKpB8)I scrolled through diff, I found a change inside
build.gradle
:I think, this should not happen, should it?
Side question: Where can I post the wish that moderne should offer a tree like the GitHub file diff (or Octotree)? I really like the UX of GitHub's tree, so that I can quickly see which fles were changed. For large diffs, this is very helpflul.
The text was updated successfully, but these errors were encountered: