Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Preserve exclusions in leiningen plugin #234

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/antq/dep/leiningen.clj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
(get const/deps-exclude-key)
(true?)))

(defn- exclude-version-range
(defn exclude-version-range
[v]
(-> (meta v)
(get const/deps-exclude-key)
Expand Down
5 changes: 3 additions & 2 deletions src/leiningen/antq.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
(into managed-dependencies)
(into plugins)
(distinct)
(keep (fn [[dep-name version]]
(keep (fn [[dep-name version :as dep]]
(when (dep.lein/acceptable-version? version)
(r/map->Dependency {:project :leiningen
:type :java
:file "project.clj"
:name (dep.lein/normalize-name dep-name)
:version version
:repositories repos}))))
:repositories repos
:exclude-versions (seq (dep.lein/exclude-version-range dep))}))))
(antq.core/antq options))]

(report/reporter outdated options)
Expand Down