Permalink
Browse files

Make LEIN_OFFLINE take precedence over what's in project.clj

Per discussion with @technomancy
  • Loading branch information...
1 parent 387e624 commit dc9fd4837697be7f6f163879ac255e61d448a918 @michaelklishin michaelklishin committed Sep 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 leiningen-core/src/leiningen/core/project.clj
@@ -47,8 +47,7 @@
:jar-exclusions [#"^\."]
:jvm-opts ["-XX:+TieredCompilation"]
:certificates ["clojars.pem"]
- :uberjar-exclusions [#"(?i)^META-INF/[^/]*\.(SF|RSA|DSA)$"]
- :offline? (not (nil? (System/getenv "LEIN_OFFLINE")))})
+ :uberjar-exclusions [#"(?i)^META-INF/[^/]*\.(SF|RSA|DSA)$"]})
(defmacro defproject
"The project.clj file must either def a project map or call this macro.
@@ -65,7 +64,8 @@
:eval-in (or (:eval-in args#)
(if (:eval-in-leiningen args#)
:leiningen
- :subprocess))}))))
+ :subprocess))
+ :offline? ~(not (nil? (System/getenv "LEIN_OFFLINE")))}))))
(defn- de-dupe-repo [[repositories seen?] [id settings]]
;; repositories from user profiles can be just credentials, so check :url

0 comments on commit dc9fd48

Please sign in to comment.