Skip to content

Instantly share code, notes, and snippets.

@Artiavis
Created December 14, 2017 03:54
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 Artiavis/1901f1f04f0f15c23711ef338308859b to your computer and use it in GitHub Desktop.
Save Artiavis/1901f1f04f0f15c23711ef338308859b to your computer and use it in GitHub Desktop.
I'm now considering using deps.edn as a replacement for profiles.clj, especially because it seems easier for installing user scripts (without uberjars).
;; 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.8.0"}
org.clojure/core.async {:mvn/version "0.3.465"}
org.clojure/data.csv {:mvn/version "0.1.3"}
org.clojure/data.priority-map {:mvn/version "0.0.7"}
org.clojure/tools.cli {:mvn/version "0.3.5"}
clojure.java-time {:mvn/version "0.3.1"}
clj-http {:mvn/version "3.7.0"}
clojurewerkz/money {:mvn/version "1.10.0"}
cheshire {:mvn/version "5.8.0"}
potemkin {:mvn/version "0.4.4"}
me.raynes/fs {:mvn/version "1.4.6"}
com.taoensso/timbre {:mvn/version "4.10.0"}
com.draines/postal {:mvn/version "2.0.2"}
com.rpl/specter {:mvn/version "1.0.5"}
spyscope {:mvn/version "0.1.6"}}
;; 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.2.196"}}}
;; :test {:extra-paths ["test"]}
;; }
;; Provider attributes
:mvn/repos {
"central" {:url "https://repo1.maven.org/maven2/"}
"clojars" {:url "https://clojars.org/repo"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment