Make LEIN_OFFLINE take precedence over what's in project.clj
Per discussion with @technomancy
This commit is contained in:
parent
387e624838
commit
dc9fd48376
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue