Skip to content

Instantly share code, notes, and snippets.

@mikeananev
Created June 12, 2019 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeananev/7d457ac497f3036284d9e2fd1f560ff5 to your computer and use it in GitHub Desktop.
Save mikeananev/7d457ac497f3036284d9e2fd1f560ff5 to your computer and use it in GitHub Desktop.
Using Leiningen and deps.edn with profiles and aliases.
(defproject my/project "0.1.0"
:repositories [["spring" {:url "https://repo.spring.io/plugins-release/"}]]
:plugins [[lein-tools-deps "0.4.5"]]
:middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn]
:lein-tools-deps/config {:config-files [:install :user :project]}
:main ^:skip-aot ams.core
:target-path "target/%s"
:uberjar-name "myapp.jar"
:profiles {:uberjar {:aot :all}
:dev {:lein-tools-deps/config {:resolve-aliases [:debug-tools]}
:injections [(use 'debux.core)
(require 'sc.api)]}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment