Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 729 Bytes
(ns leiningen.deps
"Download all dependencies."
(:require [leiningen.core.classpath :as classpath]
[clojure.pprint :as pp]))
(defn- print-tree
([tree increment level]
(doseq [[dep deps] tree]
(println (str (apply str (repeat level \space))) dep)
(when deps
(print-tree deps increment (+ level increment)))))
([tree increment]
(print-tree tree increment 0)))
(defn deps
"Download all dependencies.
You should never need to invoke this manually."
(deps project nil))
([project style]
(if (= style ":tree")
(print-tree (classpath/dependency-hierarchy :dependencies project) 2)
(classpath/resolve-dependencies :dependencies project))))
Something went wrong with that request. Please try again.