forked from nrepl/nrepl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
81 lines (73 loc) · 4.19 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
(defproject nrepl "0.9.0-SNAPSHOT"
:description "nREPL is a Clojure *n*etwork REPL."
:url "https://nrepl.org"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:scm {:name "git" :url "https://github.com/nrepl/nrepl"}
:min-lein-version "2.9.1"
:source-paths ["src/clojure"]
:java-source-paths ["src/java"]
:test-paths ["test/clojure"]
:javac-options ["-target" "8" "-source" "8"]
:aliases {"bump-version" ["change" "version" "leiningen.release/bump-version"]
"test-all" ["with-profile" "+1.7:+1.8:+1.9:+1.10:+fastlane" "test"]
"docs" ["with-profile" "+maint" "run" "-m" "nrepl.impl.docs" "--file"
~(clojure.java.io/as-relative-path
(clojure.java.io/file "doc" "modules" "ROOT" "pages" "ops.adoc"))]
"kaocha" ["with-profile" "+test" "run" "-m" "kaocha.runner"]}
:release-tasks [["vcs" "assert-committed"]
["bump-version" "release"]
["vcs" "commit" "Release %s"]
["vcs" "tag" "v" "--no-sign"]
["bump-version"]
["vcs" "commit" "Begin %s"]]
:deploy-repositories [["clojars" {:url "https://clojars.org/repo"
:username :env/clojars_username
:password :env/clojars_password
:sign-releases false}]]
:profiles {:fastlane {:dependencies [[nrepl/fastlane "0.1.0"]]}
:test {:dependencies [[com.hypirion/io "0.3.1"]
[commons-net/commons-net "3.6"]
[lambdaisland/kaocha "1.0.672"]
[lambdaisland/kaocha-junit-xml "0.0.76"]]
:plugins [[test2junit "1.4.2"]]
:test2junit-output-dir "test-results"
;; This skips any tests that doesn't work on all java versions
;; TODO: replicate koacha's version filter logic here
:test-selectors {:default (complement :min-java-version)}
:aliases {"test" "test2junit"}}
;; Clojure versions matrix
:provided {:dependencies [[org.clojure/clojure "1.10.1"]]}
:1.7 {:dependencies [[org.clojure/clojure "1.7.0"]]}
:1.8 {:dependencies [[org.clojure/clojure "1.8.0"]]}
:1.9 {:dependencies [[org.clojure/clojure "1.9.0"]]}
:1.10 {:dependencies [[org.clojure/clojure "1.10.1"]]
:source-paths ["src/spec"]}
:master {:repositories [["snapshots"
"https://oss.sonatype.org/content/repositories/snapshots"]]
:dependencies [[org.clojure/clojure "1.11.0-master-SNAPSHOT"]]}
;;; Maintenance profile
;;
;; It contains the small CLI utility (aliased to "lein docs") that
;; generates the nREPL ops documentation from their descriptor
;; metadata.
:maint {:source-paths ["src/maint"]
:dependencies [[org.clojure/tools.cli "1.0.194"]]}
;; CI tools
:cloverage [:test
{:plugins [[lein-cloverage "1.1.2"]]
:dependencies [[cloverage "1.1.2"]]
:cloverage {:codecov? true
;; Cloverage can't handle some of the code
;; in this project
:test-ns-regex [#"^((?!nrepl.sanity-test).)*$"]}}]
:cljfmt {:plugins [[lein-cljfmt "0.6.1"]]
:cljfmt {:indents {as-> [[:inner 0]]
with-debug-bindings [[:inner 0]]
merge-meta [[:inner 0]]
returning [[:inner 0]]
testing-dynamic [[:inner 0]]
testing-print [[:inner 0]]}}}
:eastwood [:test
{:plugins [[jonase/eastwood "0.3.4"]]
:eastwood {:config-files ["eastwood.clj"]}}]})