1. Starting Your Project with Leiningen

To get anywhere reusing Clojure libraries, you’ll need to set up Leiningen. It is an abstraction on top of the Maven infrastructure used in Clojure. The big idea is that you declare the libraries and versions that you’ll need in a project.clj file, and then it will go and get them for you.


In this chapter we assume the following:

Image You know how to add files to your path and grant permissions.


The benefits of Leiningen are similar to those of Maven. You will get a consistent project file structure and library dependency management. This means that other Leiningen projects will have a ...

Get Clojure Recipes now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.