You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected that assertj-core version 3.4.1 declared in dependencyManagement will be used, but gradle dependencies --configuration testCompile shows latest 3.6.2 (as of today), and the same problem for guava:
Thanks for providing such a detailed description of the problem.
This is a result of the fix for #77 which means that the plugin deliberately doesn't manage the versions of dependencies with a dynamic version. That fix may have been a bit broader than necessary, though. Any dependency, declared locally or being pulled in transitively, that has a dynamic version is skipped when applying dependency management. Only skipping locally declared dependencies would, I believe, still address #77 and would also address the problem reported here.
For posterity: in case of assertj-guava solution is simple - upgrade to newer version 3.1.0 that doesn't use range. But I can imagine that in a more complex scenarios might be critical to have at least working exclusions.
So thank you for considering this for fix. And you can count on me in testing.
build.gradle
to reproduce:assertj-guava-3.0.0.pom
declares:I expected that
assertj-core
version3.4.1
declared independencyManagement
will be used, butgradle dependencies --configuration testCompile
shows latest3.6.2
(as of today), and the same problem forguava
:Declaration of exclusions in
dependencyManagement
doesn't help, however declaration of exclusions on dependency helps:forcing of version via
resolutionStrategy
also helps:gradle --version
:In case of Maven
pom.xml
:versions resolved as expected -
mvn -V dependency:tree
:The text was updated successfully, but these errors were encountered: