Skip to content

Commit

Permalink
Merge pull request technomancy#1845 from noisesmith/bail-uberjar-snap…
Browse files Browse the repository at this point in the history
…shots

bail-out logic
  • Loading branch information
technomancy committed Feb 25, 2015
2 parents 57d23d1 + c4ff68c commit 6799203
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/leiningen/uberjar.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
[leiningen.core.main :as main]
[leiningen.core.utils :as utils]
[leiningen.jar :as jar]
[leiningen.pom :as pom]
[clojure.set :as set])
(:import (java.io File FileOutputStream PrintWriter)
(java.util.regex Pattern)
Expand Down Expand Up @@ -133,6 +134,7 @@ be deactivated."
(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 (update-in project [:jar-inclusions]
concat (:uberjar-inclusions project))
[_ jar] (try (first (jar/jar project main))
Expand Down

0 comments on commit 6799203

Please sign in to comment.