Keeping dependency versions up to date in Leininge

2020-02-08 07:28发布

Is there a simple way to find out what versions of dependencies are available using Leiningen?

E.g., if I have a web app which depends on Hiccup and Compojure, how can I be sure that I'm on the latest version of each without going to the github page for each?

NOTE: I use Ant and Ivy for building my Java projects, so I have limited knowledge of Maven - so please spell out (or provide Fine Links for me to read) any Maven concepts that Leiningen exposes to me which would help with this (I know that under the hood, Leiningen uses Maven for dependency resolution). Ta.

4条回答
smile是对你的礼貌
2楼-- · 2020-02-08 08:11

The Clojure ecosystem has evolved since the original answer was offered. At the present time, I would recommend using lein-ancient:

A Leiningen plugin to check your project for outdated dependencies and plugins. This plugin supersedes lein-outdated and uses metadata XML files in the different Maven repositories instead of a Lucene-based search index. Version comparison is done using version-clj.

Its precursor, lein-outdated, has this helpful message in its README: "lein-outdated is outdated". :)

查看更多
看我几分像从前
3楼-- · 2020-02-08 08:16

Web service that provides this info, along with badges for readmes.

http://clj-deps.herokuapp.com

Disclaimer, by me.

查看更多
淡お忘
4楼-- · 2020-02-08 08:17

You should have a look at the answer to this question. Leiningen uses the same versioning mechanism as maven so, for example, if you want to use the latest version of a given library, you can substitute the word "LATEST" for the version number. You can also specify a release version or a version range. Again, look at the answer at that link.

查看更多
看我几分像从前
5楼-- · 2020-02-08 08:22

The canonical way of doing this, at least for dependencies kept in clojars, is the lein-search plugin.

Update: See the highest-rated answer below for a more up-to-date response.

查看更多
登录 后发表回答