This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-27
Channels
- # announcements (1)
- # babashka (2)
- # beginners (64)
- # cider (1)
- # cljs-dev (49)
- # cljsrn (2)
- # clojure (49)
- # clojure-europe (3)
- # clojure-norway (1)
- # clojure-spec (7)
- # clojurescript (116)
- # conjure (3)
- # cursive (4)
- # datomic (1)
- # emacs (2)
- # fulcro (15)
- # graalvm (10)
- # kaocha (1)
- # leiningen (4)
- # meander (1)
- # music (1)
- # off-topic (7)
- # re-frame (37)
- # reagent (3)
- # releases (1)
- # rewrite-clj (6)
- # sci (4)
- # shadow-cljs (16)
- # sql (8)
- # tools-deps (16)
- # xtdb (5)
My uberjar build is failing when I remove:
:dependencies [[ring/ring-mock "0.4.0"]]
…from uberjar
profile. Any idea why? I only have that requirement listed in my :dev
profile in profiles.clj.
Syntax error compiling new at (cheshire/factory.clj:57:11).
Syntax error (ClassNotFoundException) compiling new at (cheshire/factory.clj:57:11).
com.fasterxml.jackson.core.async.ByteArrayFeeder
Full report at:
/var/folders/p_/kn06r5xx549fd9mbdpqqfcxh0000gn/T/clojure-6891903320140238539.edn
Compilation failed: Subprocess failed (exit code: 1)
try running lein deps :tree
, look for conflicts between "jackson" related libraries
a common problem is that jackson releases wholly incompatible versions, and depending on what's in your deps, different transitive deps pull different versions of jackson libraries, so a random change in the deps list breaks unrelated deps
a common approach is to use clojure.data.json
instead of cheshire
, as it doesn't require jackson, so removes a source of breakage
This is the only reference I have in the tree to “cheshire” and “jackson”:
[ring/ring-mock "0.4.0" :scope "test"]
[cheshire "5.8.1"]
[com.fasterxml.jackson.core/jackson-core "2.9.6"]
[com.fasterxml.jackson.dataformat/jackson-dataformat-cbor "2.9.6"]
[com.fasterxml.jackson.dataformat/jackson-dataformat-smile "2.9.6"]
[tigris "0.1.1"]
I don’t have cheshire
as one of my direct dependencies.