Fork me on GitHub
#tools-deps
<
2020-07-08
>
Jakub Holý (HolyJak)09:07:30

Hello! How do I run clj to only download dependencies for a profile and exit at once? Like this: clojure -R:nrepl -e "(println :DOWNLOADED)" ? Thanks!

dominicm09:07:20

@holyjak clojure -R:nrepl -Spath should do it :)

👍 3
practicalli-johnny10:07:17

Using -Spath also gives you more data should you need to debug anything (a Sean Corfield tip). I am using this form of command in my continuous integration yml configuration (in the step where I would have use lein deps with Leingingen projects)

- run: clojure -R:test:runner -Spath
http://practicalli.github.io/clojure/testing/integration-testing/circle-ci/random-clojure-function.html

fabrao19:07:16

hello all, what is the magic about starting so fast in comparing with lein and boot ?

souenzzo19:07:28

- less deps, clean design - do less things (lein/boot do A LOT more stuff) - cache classpath "in bash" ...

borkdude19:07:55

fire up only one java process (when classpath is cached)

souenzzo19:07:50

design choise example: lein help will build a classpath, start a JVM, load all plugins, ask to every plugin if it implements "help" and eventually show the help message clj --help is handled without start any JVM

fabrao19:07:15

this saved me time and memory, many thanks who made it