liquidz / antq

Point out your outdated dependencies.
Other
394 stars 22 forks source link

Exclusions not supported in leiningen plugin #231

Open marcobiscaro2112 opened 11 months ago

marcobiscaro2112 commented 11 months ago

Exclusions via metadata are not respected when using as lein plugin.

Repro project.clj:

(defproject example "0.1"
  :plugins [[com.github.liquidz/antq "RELEASE"]]
  :dependencies [^{:antq/exclude "1.11.1"} [org.clojure/clojure "1.11.0"]])
$ lein antq
| :file       | :name               | :current | :latest |
|-------------+---------------------+----------+---------|
| project.clj | org.clojure/clojure | 1.11.0   | 1.11.1  |

Works if running via clj -M:

$ clj -M:outdated
All dependencies are up-to-date.