In Leiningen versions 1.x.x I was able to define a lein foo task valid only in a single project by putting the following in that project\'s project.clj
The short answer is "no", but it is still fairly easy to define a project level task: Add :eval-in-leiningen true to your defproject definition and move the task definition to src/leiningen/foo.clj.