0Pricing
Clojure Functional Programming & JVM Backend Development · Lesson

Managing Profiles, Aliases, and Environments

Real projects need different settings for dev, test, and production. This lesson teaches Leiningen profiles and deps.edn aliases to manage configuration and environment-specific builds.

Why Profiles and Aliases

You should not ship dev tooling to production. Profiles (Leiningen) and aliases (deps.edn) let one project produce different configurations on demand.

Leiningen Profiles

A profile in project.clj overlays extra config, such as dev-only dependencies, that merge into the base.

{:profiles
 {:dev {:dependencies [[midje "1.10.9"]]}
  :uberjar {:aot :all}}}

All lessons in this course

  1. Leiningen and Deps.edn Basics
  2. Managing Dependencies & Plugins
  3. Building, Testing & Deployment
  4. Managing Profiles, Aliases, and Environments
← Back to Clojure Functional Programming & JVM Backend Development