-
Notifications
You must be signed in to change notification settings - Fork 41.2k
spring-boot-starter-oauth2-client has an unnecessary dependency on com.sun.mail:jakarta.mail #28308
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
Conversation
oauth2-client don't depend on any mail dependency, so it's just confusing and causing problems with `javax.mail.*` to `jakarta.mail.*` package name change. Was introduced with d6a869f, probably there are more similar cases.
Thanks for the PR. At the time of d6a869f,
Can you expand a bit on this, please? If there are other cases, it'd be good to address them as well but I don't understand why you think they're likely. |
Thanks for the fast response.
I just took a quick look at the commit d6a869f and saw that there are more exclude/add cases similar to one I reverted in the PR. So I guessed that it is possible that here are more cases where the exclude/add is no longer necessary. E.g. the upstream project uses the jakarta version by itself now. (would be just a code smell, because the dependency is still necessary) or as in this PR case the dependency is obsolete now. But I didn't check any other cases. |
@martin-v Thanks very much for making your first contribution to Spring Boot. |
Thanks, it was a pleasure :) |
Same reason as in spring-projectsgh-28308 introduced with d6a869f
oauth2-client don't depend on any mail dependency, so it's just confusing and causing problems with
javax.mail.*
tojakarta.mail.*
package name change.Was introduced with d6a869f, probably there are more similar cases.