Fork me on GitHub

If you have a deps.edn project, how do you push it to Clojars? The Clojars "pushing" wiki page, for example, gives instructions for Leiningen, Boot, and Maven, but not for deps.edn:


You don't 🙂


A deps.edn project can be depended on directly on GitHub.


A more helpful answer to your question is that you will need to use something like cambada to create a "thin" JAR and then do something appropriate to generate pom.xml and deploy it up to Clojars (Maven, I guess?).


Thanks, Sean. Yeah, I knew that about depending directly on GitHub commits. simple_smile But since the CLI tools don't work on Windows yet, I'm using Leiningen on my project, and Leiningen can't depend on GitHub coordinates (even with the lein-tools-deps plugin).


(I don't use Windows, but some members of my team do, and installing a Linux environment is a bit of a tall ask at this point.)


I'm surprised lein-tools-deps can't depend on git coords... boot-tools-deps supports those...


It can depend on git coords, but that functionality doesn't work on Windows. It complains about not being able to find the clojure command.

Alex Miller (Clojure team)19:10:54

you can use clj -Spom to create a pom, which could be modified into a deployment path too

Alex Miller (Clojure team)19:10:15

(in any answer to prior questions)

Alex Miller (Clojure team)19:10:46

-Spom syncs, so if you change it the pom, those changes (outside the dependencies) will be respected

👀 4

Nice, good to know, thanks Alex.