Permalink
Browse files

Skip dev dependencies when they probably aren't needed.

  • Loading branch information...
1 parent 2835866 commit a387b2196d864b24d762bb67c1ce7a472326ed7c @technomancy technomancy committed Nov 18, 2009
Showing with 4 additions and 3 deletions.
  1. +1 −1 bin/lein
  2. +3 −2 src/leiningen/deps.clj
View
@@ -29,7 +29,7 @@ fi
# Deps need to run before the JVM launches for tasks that need them
if [ "$1" = "compile" -o "$1" = "jar" -o "$1" = "uberjar" ]; then
if [ ! "$(ls -A lib/*jar 2> /dev/null)" ]; then
- $0 deps
+ $0 deps skip-dev
fi
fi
View
@@ -22,8 +22,9 @@
(defn deps
"Download and install all :dependencies listed in project.clj into the lib/
-directory. Dependencies should be a vector of entries specifying group, name,
-and version like the following:
+directory. With an argument it will skip develpment dependencies. Dependencies
+should be a vector of entries specifying group, name, and version like the
+following:
[org.clojure/clojure-contrib \"1.0-SNAPSHOT\"]"
[project & [skip-dev]]
(let [deps-task (DependenciesTask.)]

0 comments on commit a387b21

Please sign in to comment.