Skip to content

Latest commit

 

History

History
76 lines (54 loc) · 1.25 KB

exclusions.adoc

File metadata and controls

76 lines (54 loc) · 1.25 KB

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, 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"]}

Supported version ranges

Range Example Description

.x

1.2.x

Matches to 1.2.0, 1.2.1, etc.

*

1.2.0-alpha*

Matches to 1.2.0-alpha1, 1.2.0-alpha2, etc.