This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-22
Channels
- # announcements (7)
- # babashka (17)
- # beginners (45)
- # biff (2)
- # cider (16)
- # clj-on-windows (3)
- # cljs-dev (12)
- # clojure (27)
- # clojure-austin (1)
- # clojure-europe (18)
- # clojure-norway (5)
- # clojurescript (36)
- # conjure (35)
- # core-async (2)
- # datascript (4)
- # datomic (4)
- # emacs (15)
- # fulcro (23)
- # holy-lambda (12)
- # hyperfiddle (1)
- # introduce-yourself (5)
- # nbb (11)
- # off-topic (37)
- # pathom (34)
- # pedestal (9)
- # reitit (4)
- # releases (1)
- # remote-jobs (1)
- # sci (5)
- # scittle (3)
- # shadow-cljs (88)
- # tools-build (4)
I’m trying to switch from depstar building to tools.build, but I’m somehow getting different dependency versions in my uberjar. clojure -X:deps tree
is telling me that com.google.code.gson/gson 2.9
is going to be used (that’s what I put into my dependencies) and that works with depstar.
Doing the same aot -> uberjar compile with tools.build somehow adds version 2.7 instead of 2.9 to my jar. Any ideas why this is happening? I’ve been banging my head against this wall for the a whole day now 😞
after forever I finally figured out that somehow https://github.com/replikativ/datahike pulls it in, just not sure how, since it doesn’t get show as a dep and excluding it doesn’t help
For anyone else running into this: the problem was that datahike is pulling in clojurescript, which is an uberjar and that is bringing in its own deps that can’t be excluded.
To fix it for this case it’s ok to add :exclusions [org.clojure/clojurescript]
in your deps. Might be more problematic in other cases.