Move :checkout-deps-shares to default profile.
This will prevent checkout deps from being used when just the production profile is active. Also, this may be the first legitimate use of flatten I've ever seen.
This commit is contained in:
parent
893dbd4b82
commit
54cc378671
2 changed files with 6 additions and 6 deletions
|
@ -24,11 +24,7 @@
|
||||||
"as it does not contain a project.clj file."))))
|
"as it does not contain a project.clj file."))))
|
||||||
|
|
||||||
(defn- checkout-dep-paths [project dep dep-project]
|
(defn- checkout-dep-paths [project dep dep-project]
|
||||||
(if-let [shares (:checkout-deps-shares project)]
|
(flatten (map dep-project shares)))
|
||||||
(map #(% dep-project) shares)
|
|
||||||
(concat (:source-paths dep-project)
|
|
||||||
(:resource-paths dep-project)
|
|
||||||
[(:compile-path dep-project)])))
|
|
||||||
|
|
||||||
(defn- checkout-deps-paths
|
(defn- checkout-deps-paths
|
||||||
"Checkout dependencies are used to place source for a dependency
|
"Checkout dependencies are used to place source for a dependency
|
||||||
|
|
|
@ -122,7 +122,11 @@
|
||||||
"Profiles get merged into the project map. The :dev and :user
|
"Profiles get merged into the project map. The :dev and :user
|
||||||
profiles are active by default."
|
profiles are active by default."
|
||||||
(atom {:default {:resource-paths ["dev-resources"]
|
(atom {:default {:resource-paths ["dev-resources"]
|
||||||
:plugins [['lein-newnew "0.3.1"]]}
|
:plugins [['lein-newnew "0.3.1"]]
|
||||||
|
:checkout-deps-shares [:source-paths
|
||||||
|
:resource-paths
|
||||||
|
:compile-path]}
|
||||||
|
:production {}
|
||||||
:test {}
|
:test {}
|
||||||
:update {:update :always}
|
:update {:update :always}
|
||||||
:offline {:offline? true}
|
:offline {:offline? true}
|
||||||
|
|
Loading…
Reference in a new issue