From c4ff68c78e489723b88ef6bf2f68ff0f379e0913 Mon Sep 17 00:00:00 2001 From: Justin Smith Date: Wed, 25 Feb 2015 06:00:52 -0800 Subject: [PATCH] bail-out logic --- src/leiningen/uberjar.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/leiningen/uberjar.clj b/src/leiningen/uberjar.clj index e1e8c5771..2e2d450e9 100644 --- a/src/leiningen/uberjar.clj +++ b/src/leiningen/uberjar.clj @@ -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) @@ -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))