-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add document for :antq/exclude
cf. #190
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
= 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 | ||
[source,clojure] | ||
---- | ||
{:deps {foo/bar ^:antq/exclude {:mvn/version "..."}}} | ||
---- | ||
|
||
=== shadow-cljs.edn | ||
|
||
[source,clojure] | ||
---- | ||
{:dependencies [^:antq/exclude [foo/bar "..."]]} | ||
---- | ||
|
||
=== project.clj | ||
|
||
[source,clojure] | ||
---- | ||
(defproject foo "0.1.0-SNAPSHOT" | ||
:dependencies [^:antq/exclude [foo/bar "..."]] | ||
---- | ||
|
||
=== build.boot | ||
|
||
[source,clojure] | ||
---- | ||
(set-env! | ||
:dependencies '[^:antq/exclude [foo/bar "..."]]) | ||
---- | ||
|
||
=== bb.edn | ||
|
||
[source,clojure] | ||
---- | ||
{:deps {foo/bar ^:antq/exclude {:mvn/version "..."}}} | ||
---- |