technomancy/leiningen — Issue #303: Dependencies of dependencies not well handled
Author: kokaku
Created: 2011-10-26 14:57:23+00:00
State: open

```clojure
(defproject request "1.0.0-SNAPSHOT"
:description "Dependency example"
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojure/clojure-contrib "1.2.0"]]
:dev-dependencies [[lein-marginalia "0.6.0"]])
```
Run ```lein deps```

You will see a clojure and clojure-contrib jar in your lib dir and, because of marginalia, in your lib/dev dir too

I expect that
* dependencies should trump dev-dependencies
* if there's a newer version of a jar (like clojure or clojure-contrib) that other dependencies won't pull their version in too

This problem does not occur if everything is in dependencies or everything is in dev-dependencies

Workaround - use exclusions