Fork me on GitHub
#tools-deps
<
2018-10-22
>
jeff.terrell18:10:20

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: https://github.com/clojars/clojars-web/wiki/Pushing

seancorfield18:10:21

You don't 🙂

seancorfield18:10:45

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

seancorfield18:10:59

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

jeff.terrell18:10:32

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

jeff.terrell19:10:58

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

seancorfield19:10:40

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

jeff.terrell19:10:41

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
4
jeff.terrell19:10:01

Nice, good to know, thanks Alex.