Reputation: 11849
I'm running into problems because the library I have appears to conflict with the published documentation. I had a few problems with getting the right version of things installed before, and I'm wondering if this is the cause.
Is there any way to print out which jars were loaded in the repl so I can check?
Upvotes: 4
Views: 5624
Reputation: 18005
There are several options:
(System/getProperty "java.class.path")
, (println (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader))))
system-classpath
lein
: lein classpath
and lein deps :tree
boot
: boot show -p
, as well as useful function in boot environnement. Maybe have a look at martinklepsch/boot-deps.For boot
, I also wrote nha/boot-deps that helps managing dependency conflicts.
Upvotes: 0
Reputation: 6956
You can also use query lein for
lein classpath
lein deps :tree
Upvotes: 16
Reputation: 34800
This might also help:
lein deps :tree
- shows a tree of dependencies that get pulled in
[library "version" :exclusions [some-other-lib "version"]]
- exclude the some-other-lib
that gets pulled in by some library.
You can then manually pull in the right version of some-other-lib
by defining your own dependency vector.
Upvotes: 6