Posts Tagged ‘Leiningen’
Leiningen – Adding git submodule to Leiningen project
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
Leiningen Tips
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"
