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
- Leiningen and Deps.edn Basics
- Managing Dependencies & Plugins
- Building, Testing & Deployment
- Managing Profiles, Aliases, and Environments