简体   繁体   中英

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?

如果它是 Clojure 源代码, https://github.com/benedekfazekas/mranderson可能就是您要查找的内容。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM