This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-03
Channels
- # adventofcode (198)
- # aleph (10)
- # announcements (7)
- # aws (17)
- # beginners (353)
- # boot (1)
- # calva (13)
- # cider (18)
- # cljdoc (2)
- # cljs-dev (11)
- # cljsrn (1)
- # clojure (87)
- # clojure-austin (1)
- # clojure-brasil (2)
- # clojure-greece (13)
- # clojure-italy (18)
- # clojure-kc (2)
- # clojure-nl (9)
- # clojure-quebec (1)
- # clojure-russia (1)
- # clojure-spec (55)
- # clojure-uk (114)
- # clojurescript (18)
- # clojurex (14)
- # code-reviews (5)
- # core-async (17)
- # cursive (23)
- # data-science (1)
- # datomic (82)
- # docker (8)
- # duct (10)
- # emacs (8)
- # figwheel (3)
- # figwheel-main (5)
- # fulcro (13)
- # hyperfiddle (8)
- # jobs (1)
- # midje (1)
- # mount (1)
- # nrepl (2)
- # off-topic (72)
- # om (2)
- # pathom (10)
- # portkey (2)
- # re-frame (9)
- # reagent (3)
- # reitit (9)
- # ring-swagger (14)
- # schema (1)
- # shadow-cljs (91)
- # spacemacs (21)
- # sql (6)
- # tools-deps (19)
- # unrepl (9)
- # vim (41)
I'm having an issue creating an uberjar using tools.deps with boot-clj via boot-tools-deps. The clj files of my local and git dependencies are not included if I don't AOT these files. Is this the right place for such an issue?
I've created an example project with the issue here https://github.com/jeroenvandijk/tmp-boot-tools-deps-issue
The files https://github.com/jeroenvandijk/tmp-boot-tools-deps-issue/blob/master/uberjar.txt#L21-L23 are in the fileset, but not in the jar
My advice would be to use one of the uberjar utilities designed for deps.edn
instead of Boot.
boot-tools-deps
was intended as a simple bridge for starting with a Boot project and moving the primary dependencies into deps.edn
- there are several inherent limitations of the approach.
At work, we moved off Boot completely.
@seancorfield Ah good to know, thanks 😬. Out of curiosity what are you using for uberjars?
@jeroenvandijk I'll plug pack.alpha which I authored. Sean maintains a depstar fork.
@dominicm cool thanks. What's the best choice for creating uberjar's? Capsule, onejar?
(btw I tried pack.alpha, but it seems to force me to choose a main namespace as jar entry. Something i'm not used to with lein and boot-clj)
@jeroenvandijk capsule works in more contexts. I'm surprised you say that, because pack works on the opposite, clojure.main is the default unless you set it.
ok i'll have to try again 🙂 Maybe i gave up too quickly
Thanks, i'll come back with the results tomorrow
@jeroenvandijk feel free to bother me if something doesn't work.
awesome, thanks!
@jeroenvandijk My fork of depstar
-- https://clojars.org/seancorfield/depstar
thanks!
We create all our production artifacts with that (and run them with java -cp path/to/the.jar clojure.main -m entry.point
for them to start at entry.point/-main
).