Skip to content

Instantly share code, notes, and snippets.

@zampino
Created October 11, 2019 08:57
Show Gist options
  • Save zampino/2f6c47a5d6e1171759a9f6abb252bfb2 to your computer and use it in GitHub Desktop.
Save zampino/2f6c47a5d6e1171759a9f6abb252bfb2 to your computer and use it in GitHub Desktop.
Global deps edn (~/.clojure/deps.edn)
;; 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
;; External dependencies
:deps
{org.clojure/clojure {:mvn/version "1.10.1"}}
;; 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
{:repl
{:extra-paths ["/Users/amantini/.clojure/src"]
:main-opts ["-m" "repl"]
:extra-deps
{org.clojure/tools.nrepl {:mvn/version "0.2.13"}
proto-repl {:mvn/version "0.3.1"}}}
:yagni ;; dead code elimination
{:extra-paths ["/Users/amantini/.clojure/src"]
:main-opts ["-m" "yagni"]
:extra-deps
{venantius/yagni {:mvn/version "0.1.7"}}}
:sc
{:extra-deps
{vvvvalvalval/scope-capture {:mvn/version "0.3.2"}}}
:new
{:extra-deps {seancorfield/clj-new
{:mvn/version "0.7.8"}}
:main-opts ["-m" "clj-new.create"]}}}
;; Provider attributes
;; :mvn/repos {
;; "central" {:url "https://repo1.maven.org/maven2/"}
;; "clojars" {:url "https://repo.clojars.org/"}
;; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment