Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

constraining implicit dependencies resolving

  • Loading branch information...
commit d528c492ad27442de192cbdbbee37dfe89680cae 1 parent 3054293
Rob Wolfe authored committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/leiningen/compile.clj
6 src/leiningen/compile.clj
@@ -132,7 +132,10 @@
"Ahead-of-time compile the project. Looks for all namespaces under src/
unless a list of :namespaces is provided in project.clj."
- (deps project :skip-dev)
+ ;; dependencies should be resolved by explicit "lein deps",
+ ;; otherwise it will be done only if :library-path is empty
+ (when (empty? (find-lib-jars project))
+ (deps project :skip-dev))
(.mkdir (file (:compile-path project)))
(let [namespaces (namespaces-to-compile project)]
(if (seq namespaces)
@@ -141,3 +144,4 @@ unless a list of :namespaces is provided in project.clj."
(println "Compiling" namespace#)
(clojure.core/compile namespace#)))
(println "No :namespaces listed for compilation in project.clj."))))
Please sign in to comment.
Something went wrong with that request. Please try again.