Java and Clojure with Leiningen

前端 未结 3 1041
逝去的感伤
逝去的感伤 2020-12-04 14:21

Is it possible to easily manage and compile native Java classes alongside Clojure in a project using leiningen?

I am working at a pretty low level (with netty nio)

3条回答
  •  失恋的感觉
    2020-12-04 14:51

    In Leiningen tutorial there is following statement

    For projects that include some Java code, you can set the :java-source-path key in project.clj to a directory containing Java files. Then the javac compiler will run before your Clojure code is AOT-compiled, or you can run it manually with the javac task.

    so it should work out of box if :java-source-paths option is set

提交回复
热议问题