Project-level Leiningen Plugin

前端 未结 2 1085
有刺的猬
有刺的猬 2021-02-14 05:26

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

2条回答
  •  無奈伤痛
    2021-02-14 05:52

    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.

提交回复
热议问题