I have to write a pure Java library. But I'd like to use Clojure to unit test it.
So I'd like to set up something like this : two project repositories. The Java code itself, and a second, Leiningen project that includes the library and runs unit tests on it.
I do TDD so this is a fairly tight iteration (ie. write a test, write code to pass it). I can have code from both projects open in Emacs at the same time, but I want to know how to automate the connection.
For example, ideally, whenever I do "lein test", it would grab the most up-to-date Java code, compile it (if it isn't compiled), pull it into the Clojure project and use it in the tests.
How can I achieve this? I currently have the Lein project.clj file refer to the Java library in a local Maven repository. But I'm not sure if Lein automatically updates from Maven unless, say the version number changes, and I don't think I want to have to be updating the version numbering for every single change to the code-base / every 2 or 3 minutes. (At least, certainly not manually.)
Anyone got experience with this?