Fork me on GitHub

BTW @grzm

clj -Sdeps '{:paths ["src" "test"]}' -R:test -e "(require ' (clojure.test/run-all-tests)"


The :paths piece is needed because you don't have :extra-paths ["test"] in your :test alias in deps.edn which I would recommend.

Alex Miller (Clojure team)00:02:55

Luke V has a new project that does all that for you

Alex Miller (Clojure team)00:02:57

In tandem with the new clj alias it’s pretty sweet


And yay for -A!


how long before that’ll be available in brew?

Alex Miller (Clojure team)00:02:07

Pr has been filed so I’m waiting on them

Alex Miller (Clojure team)00:02:47

I need to write some docs too :)


Nice. Docs are good. Congrats!


That test-runner is nice! I've been amazed how much I can get done with just clj... much as I've previously been doing with boot directly on the command-line without a build.boot file...


@alexmiller The CLI tools have helped me better understand how Clojure works with the JVM. It’s been good.


Decided to release [seancorfield/boot-tools-deps "0.4.1"] which uses the new 0.5.351 version of tools.deps.alpha and adds a -x option to run clojure.main, along with -M to support main-aliases like the soon-to-be-released new version of clj!


So if your deps.edn files provide an alias containing :main-opts to identify a main program and/or other options then you can say boot -d seancorfield/boot-tools-deps deps -x -M alias ... and get the same behavior.


Hello. How to configure boot to check a thirt party maven repository for dependencies?


@witek try (merge-env! :repositories [["your-repository-name" {:url "your-repository-url"}]])


@moxaj Thank you. Could you give me a hint, where I should have found this information on the boot-clj website?

moxaj15:02:21 mentions :repositories, that's all I could find 😕

braai engineer16:02:17

How can I checkout a Git library using boot-tools-deps / deps.edn so that the version I need is available in build.boot? I tried (deps :quick-merge true) before calling (require '[my-lib ...]) but I can't seem to access the lib


@petrus Can you share what you're trying (post it in a GitHub repo)?


Bear in mind that using local and git repos will only update the :source-paths, not :dependencies (because there is no "dependency") to put there.


clj and tools.deps are all about building a classpath and running code -- and that's exactly what boot-tools-deps does -- it updates the classpath, by adding :paths to :resource-paths, :extra-paths to :source-paths, and any JARs that tools.deps finds (by resolving dependencies) go on the Boot classpath. In addition, tools.deps expands the dependencies it finds and boot-tool-deps has options to either replace :dependencies with that discovered set or merge it in.