Manage the Project

As we already saw working on the guestbook application, the project is managed using the project.clj and the profiles.clj files. The former contains the common configuration for the project, while the latter is used for any local configuration that’s not meant to be checked into source control.

Leiningen uses the concept of profiles to identify different build scenarios for the project. The dev and the test profiles are used for development and testing, respectively. The :dev profile is composed of the :project/dev and the :profiles/dev subprofiles, while the :test profile is composed using :project/test and :profiles/test. This allows us to merge the local and global configuration parameters.

The UberJar profile is used ...

Get Web Development with Clojure, 2nd Edition now with O’Reilly online learning.

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