Permalink
Browse files

constraining implicit dependencies resolving

  • Loading branch information...
1 parent 3054293 commit d528c492ad27442de192cbdbbee37dfe89680cae Rob Wolfe committed with Jan 31, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 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."
[project]
- (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."))))
+

0 comments on commit d528c49

Please sign in to comment.