Leiningen Build tool

Leiningen (pronounced line-ing) is the build automation tool used to manage Clojure projects. Features include:

  • Creating Clojure Projects
  • Dependency Management
  • Running browser-REPL interactive environment (figwheel plugin)
![Leiningen - build automation for Clojure](../images/leiningen-repl-custom-prompt.png)

Install Leiningen

Install Leiningen by saving the Leiningen install script to somewhere on your operating system path, eg ~/binand then running that script from the command line.

On Linux and MacOSX, make the script executable first and then run the lein script

chmod a+x ~/bin/lein

hint I create a ~/bin directory and add it to my operating system execution path ($PATH), placing the lein script in ~/bin so I can call it from anywhere on the filesystem.

The first time you run this script it downloads a Java archive file (JAR) of the latest version of Leiningen. When you run the script again, you have a working Leiningen build tool.

Testing Leiningen

Test that Leiningen is installed with the following command

lein version

Output should look similar to:

Leiningen 2.7.1 on Java 1.8.0 Java HotSpot(TM) 64-Bit Server VM

results matching ""

    No results matching ""