clojure - resolve project dependencies in custom leiningen plugin -
i trying develop custom leiningen plugin resolves project dependencies when used. plugins such lein-ring
have similar behaviour: checkout project, run lein ring server
, necessary dependencies downloaded automatically.
example:
; plugin has simple task (ns leiningen.foo) (defn foo [project & args] (println "hello foo"))
then use follows:
(defproject foo-test "0.1.0-snapshot" :description "testing plugin." :url "http://example.com/fixme" :dependencies [[org.clojure/clojure "1.6.0"] ; expect downloaded since don't have locally. [org.clojure/core.match "0.2.1"]] :plugins [[foo-plugin "0.1.0-snapshot"]])
running lein foo
executes task not download dependency. leiningen api need call in order feature?
Comments
Post a Comment