Skip to content

Commit

Permalink
Perform deps fetching before compilation in jar task. Fixes #306.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Nov 1, 2011
1 parent 2862b93 commit 51f76df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/leiningen/jar.clj
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions todo.org
Expand Up @@ -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)
Expand Down

0 comments on commit 51f76df

Please sign in to comment.