Skip to content
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

[maven] Update from component to inject per jsr330 #949

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

hazendaz
Copy link
Member

@hazendaz hazendaz commented Jan 2, 2025

maven has deprecated component now.

@hazendaz hazendaz requested a review from ctubbsii January 2, 2025 07:21
maven has deprecated component now.
@ctubbsii
Copy link
Member

maven has deprecated component now.

When you say "now", what version of Maven do you mean? It also seems very weird that Maven would deprecate Component in favor of javax.inject.Inject instead of jakarta.inject.Inject.

@hazendaz
Copy link
Member Author

hazendaz commented Jan 11, 2025 via email

@hazendaz
Copy link
Member Author

hazendaz commented Jan 11, 2025 via email

@hazendaz
Copy link
Member Author

@ctubbsii FWIW maven fixed to use jakarta.inject 2.0.1 in maven 4. Of course we will have to continue support for maven 3. And there is a general understanding that plugins need to be separately supported. That said, they also have javax.inject sitting in maven 4 as well. So that goes to explain why they didn't use the correct one because it would be rather hard to do so.

Comment on lines +131 to +135
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

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

It's unfortunate that javax didn't use a bom, like jakartaee does. I hate managing the javax dependency versions individually.

@ctubbsii ctubbsii added this to the 2.25.0 milestone Jan 16, 2025
@hazendaz hazendaz merged commit 212a98b into revelc:main Jan 19, 2025
12 checks passed
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.

2 participants