Java and Clojure with Leiningen

Toby Hede picture Toby Hede · Mar 25, 2011 · Viewed 12.3k times · Source

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) and thinking that some of the plumbing classes would actually be easier to handle as raw java both in terms of constructing the code as well as performance.

Answer

Tom picture Tom · Aug 9, 2012

As of Leiningen 2.x, :java-source-path has been replaced with :java-source-paths, whose value is now specified as a vector rather than a string.

A good place to find a full (up-to-date) documentation of Leiningen features is to peruse the sample project file. In this case, you will see:

:java-source-paths ["src/main/java"]