-
Notifications
You must be signed in to change notification settings - Fork 69
/
project.clj
84 lines (80 loc) · 5.18 KB
/
project.clj
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
;; PROJECT_VERSION is set by .circleci/deploy/deploy_release.clj,
;; whenever we perform a deployment.
(defproject refactor-nrepl (or (not-empty (System/getenv "PROJECT_VERSION"))
"0.0.0")
:description "nREPL middleware to support editor-agnostic refactoring"
:url "https://github.com/clojure-emacs/refactor-nrepl"
:license {:name "Eclipse Public License"
:url "https://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[nrepl "1.0.0"]
^:inline-dep [compliment "0.4.0"]
^:inline-dep [http-kit "2.5.0"]
^:inline-dep [org.clojure/data.json "2.4.0"]
^:inline-dep [org.clojure/tools.analyzer.jvm "1.2.3"]
^:inline-dep [org.clojure/tools.namespace "1.4.4" :exclusions [org.clojure/tools.reader]]
^:inline-dep [org.clojure/tools.reader "1.3.6"]
^:inline-dep [cider/orchard "0.21.0"]
^:inline-dep [cljfmt "0.9.2" :exclusions [rewrite-clj rewrite-cljs]]
^:inline-dep [clj-commons/fs "1.6.310"]
^:inline-dep [rewrite-clj "1.1.47"]
^:inline-dep [version-clj "2.0.2"]]
:exclusions [org.clojure/clojure] ; see versions matrix below
:pedantic? ~(if (System/getenv "CI")
:abort
;; :pedantic? can be problematic for certain local dev workflows:
false)
:deploy-repositories [["clojars" {:url "https://clojars.org/repo"
:username :env/clojars_username
:password :env/clojars_password
:sign-releases false}]]
:plugins [[thomasa/mranderson "0.5.4-SNAPSHOT"]]
:mranderson {:project-prefix "refactor-nrepl.inlined-deps"
:expositions [[org.clojure/tools.analyzer.jvm org.clojure/tools.analyzer]]
:unresolved-tree false}
:filespecs [{:type :bytes :path "refactor-nrepl/refactor-nrepl/project.clj" :bytes ~(slurp "project.clj")}]
:profiles {;; Clojure versions matrix
:provided {:dependencies [[cider/cider-nrepl "0.44.0"]
[org.clojure/clojure "1.11.1"]
;; For satisfying `:pedantic?`:
[com.google.code.findbugs/jsr305 "3.0.2"]
[com.google.errorprone/error_prone_annotations "2.20.0"]]}
:1.10 {:dependencies [[org.clojure/clojure "1.10.3"]]}
:1.11 {:dependencies [[org.clojure/clojure "1.11.1"]]}
:master {:repositories [["snapshots"
"https://oss.sonatype.org/content/repositories/snapshots"]]
:dependencies [[org.clojure/clojure "1.12.0-master-SNAPSHOT"]
[org.clojure/clojure "1.12.0-master-SNAPSHOT" :classifier "sources"]]}
:dev {}
:test {:dependencies [[cider/piggieback "0.5.3"]
[org.clojure/clojurescript "1.11.60"]
[org.clojure/core.async "1.6.673" :exclusions [org.clojure/clojure org.clojure/tools.reader]]
[commons-io/commons-io "2.13.0"]]
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
:jvm-opts ["-Dorchard.use-dynapath=false"]
:resource-paths ["test-resources"
"testproject/src"]
:java-source-paths ["java-test"]}
:cljfmt [:test
{:plugins [[lein-cljfmt "0.9.2" :exclusions [org.clojure/clojure
org.clojure/clojurescript]]]
:cljfmt {:indents {as-> [[:inner 0]]
as->* [[:inner 0]]
cond-> [[:inner 0]]
cond->* [[:inner 0]]
with-debug-bindings [[:inner 0]]
merge-meta [[:inner 0]]
try-if-let [[:block 1]]}}}]
:eastwood {:plugins [[jonase/eastwood "1.4.0"]]
:eastwood {;; :implicit-dependencies would fail spuriously when the CI matrix runs for Clojure < 1.10,
;; because :implicit-dependencies can only work for a certain corner case starting from 1.10.
:exclude-linters [:implicit-dependencies]
:exclude-namespaces [refactor-nrepl.plugin]
:add-linters [:performance :boxed-math]
:config-files ["eastwood.clj"]}}
:clj-kondo [:test
{:dependencies [[clj-kondo "2022.06.22"]
[com.fasterxml.jackson.core/jackson-core "2.13.3"]]}]
:deploy {:source-paths [".circleci/deploy"]}}
:jvm-opts ~(cond-> []
(System/getenv "CI")
(conj "-Drefactor-nrepl.internal.log-exceptions=true")))