Place deps for :eval-in-leiningen projects in lib/dev.

This commit is contained in:
Phil Hagelberg 2011-04-10 15:31:43 -07:00
parent 51b92e5624
commit 541b76c1f4
2 changed files with 17 additions and 6 deletions

View file

@ -135,10 +135,20 @@ project.clj. With an argument it will skip development dependencies."
(.getFilesetId deps-task))]
(.mkdirs (File. (:library-path project)))
(copy-dependencies (:jar-behavior project)
(:library-path project)
;; Leiningen's process only has access to lib/dev.
(if (:eval-in-leiningen project)
"lib/dev"
(:library-path project))
true fileset)
(when (use-dev-deps? project skip-dev)
(deps (assoc project :library-path (str (:root project) "/lib/dev"))
;; TODO: skip-dev/deps-set args are nonsense; we should
;; just replace :dependencies with :dev-dependencies and
;; recur in 2.0.
(deps (assoc project :library-path (str (:root project) "/lib/dev")
:disable-implicit-clean (if (:eval-in-leiningen project)
false
(:disable-implicit-clean
project)))
true :dev-dependencies))
(when (:checksum-deps project)
(spit (new-deps-checksum-file project) (deps-checksum project)))

View file

@ -49,10 +49,11 @@ See also https://github.com/technomancy/leiningen/issues
the standard lucene index system that Maven repositories offer.
This would also mean getting Clojars to produce those indices.
* For 1.5.1
- Revert back to :warn on checksum failure.
- Fix LEIN_ROOT warning in bin/lein.
- Honor user-settings in more places.
- TODO: Place checksums when performing install.
** TODO
- [x] Put :eval-in-lein deps in lib/dev for leiningen process access.
- [x] Revert back to :warn on checksum failure.
- [x] Fix LEIN_ROOT warning in bin/lein.
- [x] Honor user-settings in more places.
* For 1.5
- unify auth options between :repositories and :deploy-to
- suppress socket closed stacktrace in interactive task