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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.