Perform deps fetching before compilation in jar task. Fixes #306.

This commit is contained in:
Phil Hagelberg 2011-10-31 21:04:40 -07:00
parent 2862b93c56
commit 51f76dfa24
2 changed files with 4 additions and 3 deletions

View file

@ -202,10 +202,10 @@ function in that namespace will be used as the main-class for executable jar."
([project jar-name]
(when jar-name
(println "WARNING: Using the jar task with an argument is deprecated."))
(let [status (compile/compile project)]
(let [deps-fileset (deps project)
status (compile/compile project)]
(if (zero? status)
(let [jar-path (get-jar-filename project (get-default-jar-name project))
deps-fileset (deps project)]
(let [jar-path (get-jar-filename project (get-default-jar-name project))]
(write-jar project jar-path (filespecs project deps-fileset))
(println "Created" jar-path)
jar-path)

View file

@ -31,6 +31,7 @@ See also https://github.com/technomancy/leiningen/issues
- [X] resources with eval-in-leiningen (#248)
- [X] fix :omit-default-repositories wrt central (#211)
- [X] deps should run an implicit clean
- [ ] don't let multiple versions of a plugin interfere with each other (#301)
- [ ] signed deps for plugins (#247)
- [ ] investigate interactive failures with 1.3 (#234)
- [ ] recover from errors in repl task (#286)