-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Missing dependencies in maven poms #10034
Comments
Is this still a problem? If so, can you provide a pom that is missing a dependency and state which dependency is missing? Our poms do not include optional, provided, or test dependencies as they are not used by Maven for transitive dependencies anyway. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
@rwinch: Sorry for the late answer, I am currently on vacation.
Where can I find the information which dependencies are considered optional in spring security? |
You are correct. This was addressed in gh-11322
Spring uses spring-jcl for logging which uses the same APIs as commons-logging, but implements improved support for other logging libraries. See spring-projects/spring-framework#19081 (comment)
This is an optional dependency that you are responsible for managing the version for. You can find the list of versions that Spring Security uses at https://github.com/spring-projects/spring-security/blob/5.7.0/dependencies/spring-security-dependencies.gradle When we add support for using Gradle Feature Variants (see gh-11377) you would see optional dependencies listed in the Maven poms and be able to consume the variants from Gradle. Does this address all of your concerns? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
@rwinch: Thank you, Gradle Feature Variants would be helpful. |
@MichaelVetter It doesn't make sense to add comments to optional dependencies in spring-security-dependencies.gradle because it is only for managing the version. The decision if it is optional is in each individual module's gradle file. |
I'm going to close this in favor of the gh-11377 If you find that this doesn't solve the issue, please comment on this issue. |
The maven pom files of the spring security modules in Version 5.5.1 do not contain third party dependencies. This can cause build or runtime errors when other dependency versions are used. We had a problem with the update to commons-codec 1.15 (see #9575 ).
To Reproduce
Use spring security modules like spring-security-saml2-service-provider in Version 5.5.1 with maven and without spring boot.
Expected behavior
The generated maven poms should contain all third party dependencies.
The text was updated successfully, but these errors were encountered: