{:deps {foo/bar ^:antq/exclude {:mvn/version "..."}}}
When you’d like to exclude specific dependencies, you could --exclude
option as you know.
Otherwise, the following ways are available.
:antq/exclude
metadata is available for excluding dependencies.
{:deps {foo/bar ^:antq/exclude {:mvn/version "..."}}}
{:dependencies [^:antq/exclude [foo/bar "..."]]}
(defproject foo "0.1.0-SNAPSHOT"
:dependencies [^:antq/exclude [foo/bar "..."]]
(set-env!
:dependencies '[^:antq/exclude [foo/bar "..."]])
{:deps {foo/bar ^:antq/exclude {:mvn/version "..."}}}
Please, replace ^:antq/exclude
as follows.
;; Specific version
^{:antq/exclude "1.2.3"}
^{:antq/exclude ["1.2.3" "1.2.4"]}
;; Version range
^{:antq/exclude "1.2.x"}
^{:antq/exclude ["1.2.x" "1.3.x"]}
Range | Example | Description |
---|---|---|
|
| Matches to |
|
| Matches to |
Can you improve this documentation? These fine people already did:
liquidz & Artem SolomatinEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close