Skip to content

Instantly share code, notes, and snippets.

@plexus
Created April 9, 2020 13:36
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 plexus/18680dfc069e992395dab498afe7aee7 to your computer and use it in GitHub Desktop.
Save plexus/18680dfc069e992395dab498afe7aee7 to your computer and use it in GitHub Desktop.
;; The deps.edn file describes the information needed to build a classpath.
;;
;; When using the `clojure` or `clj` script, there are several deps.edn files
;; that are combined:
;; - install-level
;; - user level (this file)
;; - project level (current directory when invoked)
;;
;; For all attributes other than :paths, these config files are merged left to right.
;; Only the last :paths is kept and others are dropped.
{
;; Paths
;; Directories in the current project to include in the classpath
;; :paths ["src"]
;; External dependencies
;; :deps {
;; org.clojure/clojure {:mvn/version "1.9.0"}
;; }
;; Aliases
;; resolve-deps aliases (-R) affect dependency resolution, options:
;; :extra-deps - specifies extra deps to add to :deps
;; :override-deps - specifies a coordinate to use instead of that in :deps
;; :default-deps - specifies a coordinate to use for a lib if one isn't found
;; make-classpath aliases (-C) affect the classpath generation, options:
;; :extra-paths - vector of additional paths to add to the classpath
;; :classpath-overrides - map of lib to path that overrides the result of resolving deps
;; :aliases {
;; :deps {:extra-deps {org.clojure/tools.deps.alpha {:mvn/version "0.5.452"}}}
;; :test {:extra-paths ["test"]}
;; }
;; Provider attributes
;; :mvn/repos {
;; "central" {:url "https://repo1.maven.org/maven2/"}
;; "clojars" {:url "https://repo.clojars.org/"}
;; }
:aliases
{:new {:extra-deps {seancorfield/clj-new {:mvn/version "0.7.7"}}
:main-opts ["-m" "clj-new.create"]}
:depot {:extra-deps {Olical/depot {:local/root "/home/arne/github/depot"}}
:main-opts ["-m" "depot.outdated.main"]}
:upgrade {:extra-deps {Olical/depot {:local/root "/home/arne/github/depot"}}
:main-opts ["-m" "depot.outdated.main" "--write"]}
:httpd {:extra-deps {nasus {:mvn/version "0.1.5"}}
:main-opts ["-m" "http.server"]}
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment