Fork me on GitHub
#tools-deps
<
2018-12-03
>
jeroenvandijk14:12:16

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?

seancorfield16:12:30

My advice would be to use one of the uberjar utilities designed for deps.edn instead of Boot.

seancorfield16:12:20

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.

seancorfield16:12:04

At work, we moved off Boot completely.

jeroenvandijk16:12:55

@seancorfield Ah good to know, thanks 😬. Out of curiosity what are you using for uberjars?

dominicm16:12:39

@jeroenvandijk I'll plug pack.alpha which I authored. Sean maintains a depstar fork.

jeroenvandijk16:12:34

@dominicm cool thanks. What's the best choice for creating uberjar's? Capsule, onejar?

jeroenvandijk16:12:17

(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)

dominicm16:12:37

@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.

jeroenvandijk16:12:06

ok i'll have to try again 🙂 Maybe i gave up too quickly

jeroenvandijk16:12:35

Thanks, i'll come back with the results tomorrow

dominicm16:12:08

@jeroenvandijk feel free to bother me if something doesn't work.

jeroenvandijk16:12:06

awesome, thanks!

seancorfield16:12:50

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).