This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-11
Channels
- # announcements (1)
- # beginners (35)
- # calva (28)
- # cider (14)
- # cljdoc (6)
- # cljs-dev (42)
- # cljsrn (2)
- # clojure (14)
- # clojure-spec (6)
- # clojure-uk (1)
- # clojurescript (13)
- # data-science (1)
- # emacs (3)
- # joker (3)
- # kaocha (1)
- # klipse (1)
- # leiningen (3)
- # off-topic (4)
- # pathom (10)
- # rewrite-clj (1)
- # shadow-cljs (28)
- # sql (5)
@xiongtx it's mostly a communication thing. Putting it in managed dependencies says "if I have this dependency transitively, then always use this version". Putting it in your :dependencies
says "always use this version, because I'm using it in my project". If you don't actually use the dependency yourself, then :managed-dependencies
is a better way of communicating that than putting a comment in your project.clj
about it
The other benefit of using :managed-dependencies
is that if it doesn't get transitively included then it won't be included on your classpath at all