This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-30
Channels
- # adventofcode (22)
- # announcements (7)
- # beginners (32)
- # calva (56)
- # cider (96)
- # cljdoc (7)
- # cljs-dev (50)
- # clojure (173)
- # clojure-austin (8)
- # clojure-brasil (7)
- # clojure-europe (10)
- # clojure-greece (2)
- # clojure-italy (10)
- # clojure-nl (9)
- # clojure-spec (18)
- # clojure-uk (143)
- # clojurebridge (3)
- # clojurescript (9)
- # cursive (14)
- # data-science (1)
- # datascript (4)
- # datomic (9)
- # docker (7)
- # emacs (2)
- # figwheel-main (4)
- # fulcro (18)
- # garden (1)
- # graphql (13)
- # hyperfiddle (4)
- # juxt (2)
- # off-topic (43)
- # pathom (1)
- # pedestal (17)
- # portkey (163)
- # re-frame (4)
- # reitit (7)
- # rum (4)
- # shadow-cljs (139)
- # spacemacs (5)
- # sql (14)
- # unrepl (2)
First release of deps-try: Quickly try out dependencies on rebel-readline.
$ clojure -A:deps-try clj-time
[Rebel readline] Type :repl/help for online help info
Loading dependency clj-time RELEASE
[deps-try] Dependencies loaded.
user=>
https://gitlab.com/eval/deps-try/tree/master#deps-try> I have java10 installed which apparently doesnât have javax.xml.bind.DatatypeConverter (quote @dcreno)
Since this is an issue people keep running into it's good to know that you can solve this by adding an external dependency, [javax.xml.bind/jaxb-api "2.3.1"]
. This also fixes this issue for Java 9 (so no need for --add-modules
) and works on older javas as well.
In my experience it's often only javax.xml.bind.DatatypeConverter/printBase64Binary
that is used which can also be replaced with
(.encodeToString (java.util.Base64/getEncoder) ~unencoded)
Of course Arne's approach may be more suitable in situations where the code cannot be changed easily.If it's your own code then you probably know how to fix this, but there's quite a bit of libraries out there that use these classes but don't declare the dependency. Note that ClojureScript used to be in this category, but has removed its use of java.xml.bind in recent versions.
Could you share which library used the xml.bind stuff so I can take a look and maybe open a PR?
I hit it trying to run âcljr-add-project-dependencyâ