Lambdacurry

third party libs management with leiningen in clojure


in a particular project, I had to use a 3’rd party jar given to me. I didnt want to go through the whole business of uploading the JAR to clojars and trying to manage it.

An alternative was to install it in my maven local directory using mvn install:install-file . But I wanted something simpler.

The problem is that if you copy a JAR file into your lib directory and check it into revision control, the moment someone clones the repository and runs lein deps, it will destroy-recreate the lib directory causing the 3’rd party jars to be lost.

The way I figured to make it work was to use the :disable-implicit-clean true variable, which will prevent delete-recreate of the lib directory.

A hack.. but it works.


Lambdacurry

third party libs management with leiningen in clojure

Published

November 18, 2010

Find me on Twitter @sandeepssrin

Did i make any mistake? Please consider sending a pull request.