• (deps project skip-dev set)
  • (deps project skip-dev)
  • (deps project)
Download and install all :dependencies listed in project.clj.
With an argument it will skip development dependencies.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source leiningen/deps.clj:45 top

(defn deps
  "Download and install all :dependencies listed in project.clj.
With an argument it will skip development dependencies."
  ([project skip-dev set]
     (when-not (:disable-implicit-clean project)
       (empty-directory (:library-path project)))
     (let [deps-task (DependenciesTask.)]
       (.setBasedir lancet/ant-project (:root project))
       (.setFilesetId deps-task "dependency.fileset")
       (.setProject deps-task lancet/ant-project)
       (.setPathId deps-task (:name project))
       (doseq [r (map make-repository (get-repository-list project))]
         (.addConfiguredRemoteRepository deps-task r))
       (doseq [dep (project set)]
         (.addDependency deps-task (make-dependency dep)))
       (.execute deps-task)
       (.mkdirs (file (:library-path project)))
       (copy-dependencies (:jar-behavior project)
                          (:library-path project) true
                          (.getReference lancet/ant-project
                                         (.getFilesetId deps-task)))
       (when (and (not skip-dev) (seq (:dev-dependencies project)))
         (deps (assoc project :library-path (str (:root project) "/lib/dev"))
               true :dev-dependencies))))
  ([project skip-dev] (deps project skip-dev :dependencies))
  ([project] (deps project false)))
Vars in leiningen.deps/deps: and assoc defn doseq let not seq str when when-not ant-project
Used in 0 other vars

Comments top

No comments for deps. Log in to add a comment.