librelist archives

« back to archive

Pure java compiles with lein

Pure java compiles with lein

From:
Paul Nathan
Date:
2014-02-24 @ 22:11
Hi,

I'd like to compile an Eclipse plugin written with 100% Java and use
Leiningen for handling this (lein is very simple compared to maven and ant
IMO).

Do people do this? How do they do it? My look into the lein-javac suggested
its old and out of date.

Regards,
Paul

Re: [leiningen] Pure java compiles with lein

From:
Mauricio Aldazosa
Date:
2014-02-25 @ 14:48
Lein supports java compilation out of the box:
https://github.com/technomancy/leiningen/blob/master/doc/MIXED_PROJECTS.md

Cheers,
Mauricio

Re: [leiningen] Pure java compiles with lein

From:
Jean Niklas L'orange
Date:
2014-02-25 @ 16:10
Hi Paul,

On 24 February 2014 23:11, Paul Nathan <pnathan.software@gmail.com> wrote:

> I'd like to compile an Eclipse plugin written with 100% Java and use
> Leiningen for handling this (lein is very simple compared to maven and ant
> IMO).
>
> Do people do this? How do they do it? My look into the lein-javac
> suggested its old and out of date.
>

I'm not sure how Eclipse works with this, but creating a pure Java projects
works completely fine with Lein.

com.hypirion.io <https://github.com/hyPiRion/com.hypirion.io> is an example
of a Java library with unit tests. You should probably take a look on its

project.clj<https://github.com/hyPiRion/com.hypirion.io/blob/0cf420af78b852838cba991ee7e5c49cf829b4c6/project.clj>
to
see how to set up a pure Java project properly.

The only plugin I use is lein-junit for unit testing. lein-shell is for
autogenerating javadoc, it's not strictly speaking necessary.

-- 
Regards,
Jean Niklas L'orange