Skip to content

Commit

Permalink
Unmerge non-leaky profiles for uberjar snapshot deps check
Browse files Browse the repository at this point in the history
  • Loading branch information
glts committed Jun 14, 2019
1 parent 7fb1d6b commit 0546de0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/leiningen/uberjar.clj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
(org.apache.commons.io.output CloseShieldOutputStream)
(org.apache.commons.lang StringEscapeUtils)))

(defn- check-for-snapshot-deps [project]
(->> (project/non-leaky-profiles project)
(project/unmerge-profiles project)
pom/check-for-snapshot-deps))

(defn- tree-edit
"Walk the componment xml dom looking for description tag"
[zipper editor]
Expand Down Expand Up @@ -160,8 +165,9 @@ be deactivated."
provided-profiles (remove
(set/difference default-profiles scoped-profiles)
(-> project meta :included-profiles))
project (project/merge-profiles (project/merge-profiles project [:uberjar]) provided-profiles)
_ #_ (bail early if snapshot) (pom/check-for-snapshot-deps project)
project (->> (into [:uberjar] provided-profiles)
(project/merge-profiles project))
_ (check-for-snapshot-deps project)
project (update-in project [:jar-inclusions]
concat (:uberjar-inclusions project))
[_ jar] (try (first (jar/jar project main))
Expand Down

0 comments on commit 0546de0

Please sign in to comment.