Search code examples
clojuredependenciesleiningen

Clojure transitive dependency version conflict


I have a Clojure Leiningen project that has two dependencies A and B and a transitive dependency X which A and B depend on.

A → X [version 1.0]
B → X [version 2.0]

Both A and B are external dependencies. The problem is I can't use version 2 of X for A or version 1 of X for B as it throws java.lang.NoSuchMethodError

Is there a plugin in Clojure that can help shade the transitive dependencies for both A and B or provide an idiomatic way of dealing with this?


Solution

  • https://github.com/benedekfazekas/mranderson might be what you're looking for if it's Clojure source.