HariUserX
HariUserX

Reputation: 1334

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?

Upvotes: 6

Views: 504

Answers (1)

Alex Miller
Alex Miller

Reputation: 70201

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

Upvotes: 3

Related Questions