Liking cljdoc? Tell your friends :D

Exclusions

When you’d like to exclude specific dependencies, you could --exclude option as you know.

Otherwise, the following ways are available.

Metadata in your project file

:antq/exclude metadata is available for excluding dependencies.

deps.edn

{:deps {foo/bar ^:antq/exclude {:mvn/version "..."}}}

shadow-cljs.edn

{:dependencies [^:antq/exclude [foo/bar "..."]]}

project.clj

(defproject foo "0.1.0-SNAPSHOT"
  :dependencies [^:antq/exclude [foo/bar "..."]]

build.boot

(set-env!
  :dependencies '[^:antq/exclude [foo/bar "..."]])

bb.edn

{:deps {foo/bar ^:antq/exclude {:mvn/version "..."}}}

Specify a version or version range via metadata

Please repalce ^: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"]}

Supported version ranges

RangeDescription

1.2.x

Matches to 1.2.0, 1.2.1, etc.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close