Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to check the latest version of a clojure library on clojars?

Tags:

clojure

I am using pomegranate's add-dependencies function:

(add-dependencies :coordinates '[[incanter "1.2.3"]]
                  :repositories {"clojars" "http://clojars.org/repo"})

However, I don't usually know what the latest version of incanter (or any other project). Is there a way to check for that programmatically?

like image 702
zcaudate Avatar asked Jan 12 '23 16:01

zcaudate


2 Answers

$ lein ancient
[com.taoensso/timbre "2.6.2"] is available but we use "2.1.2"
[potemkin "0.3.3"] is available but we use "0.3.0"
[pandect "0.3.0"] is available but we use "0.2.3"

clojars

like image 129
Alister Lee Avatar answered Jan 30 '23 23:01

Alister Lee


Another approach (which might work but I haven't tested it yet) would be to use "RELEASE" as the artifact version. That's, for example, how lein-try does it.

(add-dependencies '[[incanter "RELEASE"]] ...)
like image 43
xsc Avatar answered Jan 31 '23 01:01

xsc