Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display loaded dependencies in leiningen REPL

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?

like image 525
Xodarap Avatar asked Nov 27 '22 17:11

Xodarap


2 Answers

You can also use query lein for

  • the classpath with lein classpath
  • a dependency tree printout with lein deps :tree
like image 200
NielsK Avatar answered Feb 08 '23 14:02

NielsK


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.

like image 31
Michiel Borkent Avatar answered Feb 08 '23 13:02

Michiel Borkent