forked from seancorfield/dot-clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.edn
266 lines (255 loc) · 14.8 KB
/
deps.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
;; see https://github.com/seancorfield/dot-clojure
{:mvn/repos {"sonatype" {:url "https://oss.sonatype.org/content/repositories/snapshots/"}}
:aliases
{;; pull in specific versions of Clojure:
:1.0 {:override-deps {org.clojure/clojure {:mvn/version "1.0.0"}}}
:1.1 {:override-deps {org.clojure/clojure {:mvn/version "1.1.0"}}}
:1.2 {:override-deps {org.clojure/clojure {:mvn/version "1.2.1"}}}
:1.3 {:override-deps {org.clojure/clojure {:mvn/version "1.3.0"}}}
:1.4 {:override-deps {org.clojure/clojure {:mvn/version "1.4.0"}}}
:1.5 {:override-deps {org.clojure/clojure {:mvn/version "1.5.1"}}}
:1.6 {:override-deps {org.clojure/clojure {:mvn/version "1.6.0"}}}
:1.7 {:override-deps {org.clojure/clojure {:mvn/version "1.7.0"}}}
:1.8 {:override-deps {org.clojure/clojure {:mvn/version "1.8.0"}}}
:1.9 {:override-deps {org.clojure/clojure {:mvn/version "1.9.0"}}}
:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.0"}}}
:1.10.1 {:override-deps {org.clojure/clojure {:mvn/version "1.10.1"}}}
:master {:override-deps {org.clojure/clojure {:mvn/version "1.11.0-master-SNAPSHOT"}}}
;; testing and debugging tools:
:test {:extra-paths ["test" "src/test/clojure"]
:extra-deps {org.clojure/test.check {:mvn/version "RELEASE"}}}
;; - see https://github.com/cognitect-labs/test-runner
;; - run your tests: clj -A:test:runner
:runner {:extra-deps {com.cognitect/test-runner
{:git/url "https://github.com/cognitect-labs/test-runner"
:sha "3cb0a9daf1cb746259dc8309b218f9211ad3b33b"}}
:main-opts ["-m" "cognitect.test-runner"
"-d" "test"
"-d" "src/test/clojure"]}
;; - see https://github.com/seancorfield/readme
:readme {:extra-deps {seancorfield/readme {:mvn/version "RELEASE"}}
:main-opts ["-m" "seancorfield.readme"]}
:watch {:extra-deps {lambdaisland/kaocha {:mvn/version "0.0-521"}}
:main-opts ["-m" "kaocha.runner"
"--watch"]}
:repl {:extra-paths ["test"]
:extra-deps {nrepl {:mvn/version "RELEASE"}
cljfmt {:mvn/version "RELEASE"}
cider/cider-nrepl {:mvn/version "0.22.0"}}
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}
;; - see https://github.com/jonase/eastwood#running-eastwood-in-a-repl
:eastwood {:extra-deps {jonase/eastwood {:mvn/version "RELEASE"}}
:main-opts ["-m" "eastwood.lint" "{:source-paths,[\"src\"],:test-paths,[\"test\"]}"]}
;; - see https://github.com/clojure-expectations/expectations
;; - and https://github.com/clojure-expectations/clojure-test
;; - run your expectations: clj -A:test:expect:runner
:expect {:extra-deps {expectations {:mvn/version "RELEASE"}
expectations/clojure-test {:mvn/version "RELEASE"}}}
;; - see https://github.com/hugoduncan/criterium/
;; - (require '[criterium.core :refer [bench]])
;; - (bench (your-expression))
:bench {:extra-deps {criterium {:mvn/version "RELEASE"}}}
;; - see https://github.com/clojure-goes-fast/clj-java-decompiler
;; - note: this only seems to work on JDK 8
;; - (require '[clj-java-decompiler.core :refer [decompile]])
;; - (decompile (your-expression))
:decompile {:extra-deps {com.clojure-goes-fast/clj-java-decompiler {:mvn/version "RELEASE"}}}
;; - see https://github.com/clojure-goes-fast/clj-memory-meter
;; - (require '[clj-memory-meter.core :as mm])
;; - (mm/measure (your-expression))
:measure {:extra-deps {com.clojure-goes-fast/clj-memory-meter {:mvn/version "RELEASE"}}}
;; - see https://github.com/Olical/depot
:outdated {:extra-deps {olical/depot {:mvn/version "1.8.4"}}
:main-opts ["-m" "depot.outdated.main"]}
;; REPL-related tools:
;; - start a modern nREPL server on a random available port:
:nrepl {:extra-deps {nrepl {:mvn/version "RELEASE"}}
:main-opts ["-m" "nrepl.cmdline"]}
;; - start a legacy nREPL server on port 60606:
:nrepl/old {:extra-deps {org.clojure/tools.nrepl {:mvn/version "RELEASE"}}
:main-opts ["-e" "(require,'[clojure.tools.nrepl.server,:refer,[start-server]]),(start-server,:port,60606)"]}
;; - start a Socket REPL on port 50505:
:socket {:jvm-opts ["-Dclojure.server.repl={:port,50505,:accept,clojure.core.server/repl}"]}
;; - start a Socket REPL on an available port, and display that port:
;; - specify -r as well if you want a repl
:socket-zero {:jvm-opts ["-Dclojure.server.repl={:port,0,:accept,clojure.core.server/repl}"]
:main-opts ["-e" "(.getLocalPort,(get-in,@#'clojure.core.server/servers,[\"repl\",:socket]))"]}
;; - start a Socket pREPL on port 40404:
:prepl {:jvm-opts ["-Dclojure.server.repl={:port,40404,:accept,clojure.core.server/io-prepl}"]}
;; - see https://atom.io/packages/proto-repl
;; - for use with Atom/ProtoREPL: clj -A:proto:nrepl
:proto {:extra-deps {proto-repl {:mvn/version "RELEASE"}}}
;; - see https://github.com/bhauman/rebel-readline
;; - start a Rebel Readline REPL:
:rebel {:extra-deps {com.bhauman/rebel-readline {:mvn/version "RELEASE"}}
:main-opts ["-m" "rebel-readline.main"]}
;; - see https://github.com/stuarthalloway/reflector
:reflect
{:extra-deps {com.stuarthalloway/reflector
{:git/url "https://github.com/stuarthalloway/reflector"
:sha "93a0c19b4526c1180959e940202928d35e5c3cef"}}}
;; - see https://github.com/bbatsov/compliment
:comp {:extra-deps {compliment {:mvn/version "RELEASE"}}}
;; - see https://github.com/cognitect-labs/REBL-distro
;; - you need to download the REBL JAR (and update the local/root below)
;; - you need to be using Clojure 1.10 and either
;; - - Oracle JDK 8/Zulu OpenJDK 8 w/JavaFX -- use :rebl-8
;; - - OpenJDK 11 -- use :rebl-11
;; - - on Windows, use the -win versions of these aliases
;; - - (assumes you have REBL as /Developer/REBL/latest/REBL.jar
;; - - on macOS/Linux and C:\Developer\REBL\latest\REBL.jar on Windows)
:rebl-8
{:extra-deps {org.clojure/core.async {:mvn/version "0.6.532"}
;; deps for file datafication (0.9.149 or later)
org.clojure/data.csv {:mvn/version "0.1.4"}
org.clojure/data.json {:mvn/version "0.2.7"}
org.yaml/snakeyaml {:mvn/version "1.25"}
com.cognitect/rebl
;; adjust to match your install location
{:local/root "/Applications/Developer/REBL-0.9.220.jar"}}
;; this ensures we have a DynamicClassLoader, which is needed for
;; add-lib to work, if we're starting other processes via aliases
;; such as a socket REPL or Cognitect's REBL etc
:main-opts ["-e" "(->>(Thread/currentThread)(.getContextClassLoader)(clojure.lang.DynamicClassLoader.)(.setContextClassLoader,(Thread/currentThread)))"
"-m" "cognitect.rebl"]}
:rebl-11
{:extra-deps {org.clojure/core.async {:mvn/version "0.6.532"}
;; deps for file datafication (0.9.149 or later)
org.clojure/data.csv {:mvn/version "0.1.4"}
org.clojure/data.json {:mvn/version "0.2.7"}
org.yaml/snakeyaml {:mvn/version "1.25"}
com.cognitect/rebl
;; adjust to match your install location
{:local/root "/Applications/Developer/REBL-0.9.220.jar"}
org.openjfx/javafx-fxml {:mvn/version "11.0.2"}
org.openjfx/javafx-controls {:mvn/version "11.0.2"}
org.openjfx/javafx-graphics {:mvn/version "11.0.2"}
org.openjfx/javafx-media {:mvn/version "11.0.2"}
org.openjfx/javafx-swing {:mvn/version "11.0.2"}
org.openjfx/javafx-base {:mvn/version "11.0.2"}
org.openjfx/javafx-web {:mvn/version "11.0.2"}}
;; this ensures we have a DynamicClassLoader, which is needed for
;; add-lib to work, if we're starting other processes via aliases
;; such as a socket REPL or Cognitect's REBL etc
:main-opts ["-e" "(->>(Thread/currentThread)(.getContextClassLoader)(clojure.lang.DynamicClassLoader.)(.setContextClassLoader,(Thread/currentThread)))"
"-m" "cognitect.rebl"]}
:rebl-8-win
{:extra-deps {org.clojure/core.async {:mvn/version "0.6.532"}
;; deps for file datafication (0.9.149 or later)
org.clojure/data.csv {:mvn/version "0.1.4"}
org.clojure/data.json {:mvn/version "0.2.7"}
org.yaml/snakeyaml {:mvn/version "1.25"}
com.cognitect/rebl
;; adjust to match your install location
{:local/root "C:\\Developer\\REBL\\latest\\REBL.jar"}}
;; this ensures we have a DynamicClassLoader, which is needed for
;; add-lib to work, if we're starting other processes via aliases
;; such as a socket REPL or Cognitect's REBL etc
:main-opts ["-e" "(->>(Thread/currentThread)(.getContextClassLoader)(clojure.lang.DynamicClassLoader.)(.setContextClassLoader,(Thread/currentThread)))"
"-m" "cognitect.rebl"]}
:rebl-11-win
{:extra-deps {org.clojure/core.async {:mvn/version "0.6.532"}
;; deps for file datafication (0.9.149 or later)
org.clojure/data.csv {:mvn/version "0.1.4"}
org.clojure/data.json {:mvn/version "0.2.7"}
org.yaml/snakeyaml {:mvn/version "1.25"}
com.cognitect/rebl
;; adjust to match your install location
{:local/root "C:\\Developer\\REBL\\latest\\REBL.jar"}
org.openjfx/javafx-fxml {:mvn/version "11.0.2"}
org.openjfx/javafx-controls {:mvn/version "11.0.2"}
org.openjfx/javafx-graphics {:mvn/version "11.0.2"}
org.openjfx/javafx-media {:mvn/version "11.0.2"}
org.openjfx/javafx-swing {:mvn/version "11.0.2"}
org.openjfx/javafx-base {:mvn/version "11.0.2"}
org.openjfx/javafx-web {:mvn/version "11.0.2"}}
;; this ensures we have a DynamicClassLoader, which is needed for
;; add-lib to work, if we're starting other processes via aliases
;; such as a socket REPL or Cognitect's REBL etc
:main-opts ["-e" "(->>(Thread/currentThread)(.getContextClassLoader)(clojure.lang.DynamicClassLoader.)(.setContextClassLoader,(Thread/currentThread)))"
"-m" "cognitect.rebl"]}
:cider-clj
{:extra-deps {org.clojure/clojure {:mvn/version "1.10.1"}
cider/cider-nrepl {:mvn/version "0.22.0"}}
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}
:cider-cljs
{:extra-deps {org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/clojurescript {:mvn/version "1.10.339"}
cider/cider-nrepl {:mvn/version "0.22.0"}
cider/piggieback {:mvn/version "0.4.1"}}
:main-opts ["-m" "nrepl.cmdline" "--middleware"
"[cider.nrepl/cider-middleware,cider.piggieback/wrap-cljs-repl]"]}
:deps ; to get access to clojure.tools.deps.alpha.repl/add-lib
;; - now you can add new deps to a running REPL:
;; (require '[clojure.tools.deps.alpha.repl :refer [add-lib]])
;; (add-lib 'some/library {:mvn/version "RELEASE"})
;; - and you can git deps too; here's how to get the master version of a lib:
;; (require '[clojure.tools.gitlibs :as gitlibs])
;; (defn load-master [lib]
;; (let [git (str "https://github.com/" lib ".git")]
;; (add-lib lib {:git/url git :sha (gitlibs/resolve git "master")})))
;; - e.g., using the GitHub path (not the usual Maven group/artifact):
;; (load-master 'clojure/tools.trace)
{:extra-deps {org.clojure/tools.deps.alpha
{:git/url "https://github.com/clojure/tools.deps.alpha"
:sha "19d197ab221d37db750423eb970880cb87a91100"}}
;; this ensures we have a DynamicClassLoader, which is needed for
;; add-lib to work, if we're starting other processes via aliases
;; such as a socket REPL or Cognitect's REBL etc
:main-opts ["-e" "(->>(Thread/currentThread)(.getContextClassLoader)(clojure.lang.DynamicClassLoader.)(.setContextClassLoader,(Thread/currentThread)))"]}
:graph {:deps {org.clojure/tools.deps.graph {:mvn/version "0.2.24"}}
:main-opts ["-m" "clojure.tools.deps.graph"]}
:spec2 ; to get access to the latest spec-alpha2
{:extra-deps {org.clojure/spec-alpha2
{:git/url "https://github.com/clojure/spec-alpha2"
:sha "b644e4d8c5553e10544d920306690fffe9b53e15"}}}
;; start the Liquid Clojure editor
;; - see https://github.com/mogenslund/liquid
:liquid
{:extra-deps {mogenslund/liquid {:mvn/version "RELEASE"}}
:main-opts ["-m" "liq.core"]}
;; project creation from templates:
;; - see https://github.com/seancorfield/clj-new
;; - create an application project:
;; - clj -A:new app myname/myapp
;; - cd myapp
;; - clj -m myname.myapp # run it!
;; - clj -A:test:runner # run the tests!
;; - create a library project:
;; - clj -A:new lib myname/my-cool-lib
;; - cd my-cool-lib
;; - clj -A:test:runner # run the tests!
:new {:extra-deps {seancorfield/clj-new {:mvn/version "RELEASE"}}
:main-opts ["-m" "clj-new.create"]}
;; uberjar building:
;; - see https://github.com/seancorfield/depstar for a minimalist approach:
;; - clj -A:uberjar result.jar
;; - to run it:
;; - java -cp result.jar clojure.main -m mymain.namespace
;; - build a library JAR:
;; - clj -A:jar result-lib.jar
:uberjar {:extra-deps {seancorfield/depstar {:mvn/version "RELEASE"}}
:main-opts ["-m" "hf.depstar.uberjar"]}
:jar {:extra-deps {seancorfield/depstar {:mvn/version "RELEASE"}}
:main-opts ["-m" "hf.depstar.jar"]}
;; jar installation and deployment:
;; - see https://github.com/slipset/deps-deploy
;; - clj -A:install project.jar
;; - clj -A:deploy project.jar
;; - these rely on having a pom.xml file and, for deployment, these two
;; environment variables: CLOJARS_USERNAME, CLOJARS_PASSWORD
:install {:extra-deps {deps-deploy {:mvn/version "RELEASE"}}
:main-opts ["-m" "deps-deploy.deps-deploy" "install"]}
:deploy {:extra-deps {deps-deploy {:mvn/version "RELEASE"}}
:main-opts ["-m" "deps-deploy.deps-deploy" "deploy"]}
;; closh
:closh {:extra-deps {closh {:git/url "https://github.com/dundalek/closh.git"
:tag "v0.5.0" :sha "6a7c0aa293616e2d28f7f735e915a301e44d2121"}}
:main-opts ["-m" "closh.zero.frontend.rebel"]}
;; - inspired by Ruby's -pne command line option which lets you process lines of stdin bound to $_
;; - usage: cat file-of-numbers.txt | clj -Mpne -e '($ (-> $_ Long/parseLong inc))'
:pne {:main-opts,["-e","(defmacro,$,[&,body],(list,'while,(list,'when-let,'[$_,(read-line)],(let,[v,(gensym)],(list,'let,(vector,v,(list*,'do,body)),(list,'println,v))),'$_)))"]}
;; clj-refactor
:clj-refactor
{:extra-deps {refactor-nrepl {:mvn/version "2.4.0"}
cider/cider-nrepl {:mvn/version "0.18.0"}}}}}