Tech behind Tech

Raw information. No finesse :)

Posts Tagged ‘Leiningen

Leiningen – Adding git submodule to Leiningen project

with 4 comments


With git, sometimes it easy to use git submodule for dependency management. In Leiningen, for some reason the only “advertised” way of dependency management is using maven. After some poking around, there is a way in Leiningen to use git submodules for dependency management.

Are you ready? ( drumroll …)

It is very simple actually :)

You have to checkout your submodules to “checkouts” folder. Leiningen will automatically add your submodule’s src directory to your classpath.

That’s it folks :)

Written by Siva Jagadeesan

December 11, 2010 at 1:39 pm

Posted in Clojure

Tagged with , ,

Leiningen Tips

leave a comment »


Tip 1 : Adding License info

To add your license info, add these following lines in project.clj

:license {:name "Eclipse Public License - v 1.0"
          :url "http://www.eclipse.org/legal/epl-v10.html"
          :distribution :repo
          :comments "same as Clojure"}

Tip 2: Turning off auto delete of lib folder

:disable-implicit-clean true

Tip 3: Turning on reflection warning calls

:warn-on-reflection true

Tip 4: Changing JVM level options

:jvm-opts "-Xmx1g"

Written by Siva Jagadeesan

June 29, 2010 at 8:08 pm

Posted in Clojure

Tagged with , ,

Follow

Get every new post delivered to your Inbox.

Join 146 other followers

%d bloggers like this: