Can't resolve transitive dependencies by myself

I have a flink project. Which has transitive guava dependencies. Simplified it looks like this:
+--- foo
|  +--- bar
|  |   +--- guava:1.5
|  +--- biz
|  |   +--- guava:1.3

If I set 1.5, it ruins
biz
and if I set 1.3 it ruins
bar
(these versions do not represent my real project and i put them here just as an example)

How to force gradle to set exact dependencies for dependencies dependencies?
Was this page helpful?