Plugin Leiningen no nível do projeto

Em Leiningen versões 1.x.x consegui definir umlein foo tarefa válida apenas em um único projeto, colocando o seguinte em que projeto deproject.clj:

(defproject tester "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.4.0"]])

;; Create a task, "foo"

(ns leiningen.foo
  (:require (leiningen [uberjar :as uberjar])))

(defn foo [project & args]
  (println "Do something here first, then make the uberjar.")
  (uberjar/uberjar project))

Você pode obter mais informações sobre isso aqui:

http://nakkaya.com/2010/02/25/writing-leiningen-plugins-101/

Em 2.x.x, não consigo mais fazer isso (por exemplo,'foo' is not a task. Parece muito, muito difícil ter que começar um projeto separado para essa tarefa.Ainda é possível definir uma tarefa dentro de project.clj para leiningen 2.x.x?

questionAnswers(2)

yourAnswerToTheQuestion