lein 编译目标路径配置

lein compile target-path configuration

我需要 lein 方面的帮助。

我需要将我的程序编译为 build/classes/main/

Lein 将 /classes 附加到我在 project.clj 指定的任何文件夹中:target-path.

例如,如果我设置:

:target-path "build"

文件将在 build/classes 而不是 build/classes/main

生成

如果我设置:

:target-path "build/classes/main"

文件将在 build/classes/main/classes

生成

build/classes/main/ 是我的 grails 项目编译所有 Groovy 和 Java classes 之前打包 war 文件。我的 Clojure .class 也必须在那里。

在您的 project.clj 中设置 :compile-path

:target-path "build"
:compile-path "%s/classes/main"