Managing Projects with Leiningen
Web Development with Clojure, Third Edition — by Dmitri Sotnikov, Scot Brown (10 / 107)
👈 Set Up Your Environment | TOC | Build Your Firs t Web App 👉
Leiningen lets you create, build, test, package, and deploy your projects. In other words, it’s your one-stop shop for all your project-management needs.
Leiningen is the Clojure counterpart of Maven,[4] a popular Java build tool. It uses a Maven-compatible dependency management system, so it has access to large and well-maintained repositories of Java libraries. In addition, Clojure libraries are commonly found in the Clojars repository.[5] This repository is enabled by default in Leiningen.
With Leiningen, you don’t need to worry about manually downloading all the libraries for your project. Specifying the top-level dependencies will cause any libraries that they depend on to be pulled in automatically.
Leiningen is available as a package for many Linux distributions, as well, via Homebrew on MacOS. If Leiningen isn’t packaged on your system, then it can be installed using the installation script found on the official project page:[6]
$ wget https://raw.github.com/technomancy/leiningen/stable/bin/lein
...
HTTP request sent, awaiting response... 200 OK
Length: 12463 (12K) [text/plain]
Saving to: ‘lein’
lein 100%[=========================>] 12.17K --.-KB/s in 0s
yyyy-MM-dd HH:mm:ss (96.3…