spring-cloud / spring-cloud-openfeign

Support for using OpenFeign in Spring Cloud apps
Apache License 2.0
1.22k stars 786 forks source link

spring-cloud-openfeign-dependencies 3.1.5 declares "bad" version of spring-security-oauth2-client #786

Closed stefanscheidt closed 1 year ago

stefanscheidt commented 2 years ago

With version 3.1.5 of spring-cloud-openfeign that ships with Spring Cloud 2021.0.5, the spring-cloud-openfeign-dependencies POM pins the version of spring-security-oauth2-client to 5.7.3.

This causes the following issues:

As a work around, the second problem can be fixed by not only overwriting the Maven property spring-security.version, but also declaring a dependency management for spring-security-oauth2-client using this version in the application Maven POM itself.

We don't know what to do in the first situation:

OlgaMaciaszek commented 1 year ago

Thanks for reporting the issue, @stefanscheidt. That's right. In fact, we should not be managing the version of this dependency at all. I'm going to remove this from the SC OpenFeign dependencies pom, so that it's pulled directly from Boot.