-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
project.clj
86 lines (70 loc) · 4.06 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
85
86
(def jdk-version
(let [v (System/getProperty "java.specification.version")]
(if (.contains v ".") 8 (Integer/parseInt v))))
(def jdk8? (= jdk-version 8))
(def dev-test-common-profile
{:dependencies '[[org.clojure/java.classpath "1.1.0"]
[nubank/matcher-combinators "3.9.1"
:exclusions [org.clojure/clojure]]]
:source-paths ["test-java" "java"]
:resource-paths ["test-resources"]
:test-paths ["test"]
:java-source-paths ["test-java"]})
(defproject cider/orchard (or (not-empty (System/getenv "PROJECT_VERSION"))
"0.0.0")
:description "A fertile ground for Clojure tooling"
:url "https://github.com/clojure-emacs/orchard"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:scm {:name "git" :url "https://github.com/clojure-emacs/orchard"}
: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}]]
:jvm-opts ["-Dclojure.main.report=stderr"]
:source-paths ["src"]
:test-paths ["test"]
:java-source-paths ["java"]
:javac-options ["-Xlint:unchecked"]
:profiles {:provided {:dependencies [[org.clojure/clojure "1.12.0"]
[org.clojure/clojure "1.12.0" :classifier "sources"]]}
:1.10 {:dependencies [[org.clojure/clojure "1.10.3"]
[org.clojure/clojure "1.10.3" :classifier "sources"]]}
:1.11 {:dependencies [[org.clojure/clojure "1.11.4"]
[org.clojure/clojure "1.11.4" :classifier "sources"]]}
:1.12 {:dependencies [[org.clojure/clojure "1.12.0"]
[org.clojure/clojure "1.12.0" :classifier "sources"]]}
;; Needed to test how Orchard behaves with Clojurescript on classpath.
:cljs {:dependencies [[org.clojure/clojurescript "1.11.132"]]
:test-paths ["test-cljs"]}
:spec2 {:source-paths ["submodules/spec-alpha2/src/main/clojure"]}
:test ~(merge
dev-test-common-profile
;; Initialize the cache verbosely, as usual, so that possible issues can be more easily diagnosed:
{:jvm-opts
["-Dorchard.initialize-cache.silent=false"
"-Dorchard.internal.test-suite-running=true"]
:resource-paths ["test-resources"
"test-java-invalid"
"not-a.jar"
"does-not-exist.jar"]})
;; Development tools
:dev ~(-> dev-test-common-profile
(update :source-paths conj "dev")
(update :dependencies conj '[org.clojure/tools.namespace "1.5.0"]))
:cljfmt {:plugins [[lein-cljfmt "0.9.2"]]
:cljfmt {:indents {merge-meta [[:inner 0]]}}}
:clj-kondo {:plugins [[com.github.clj-kondo/lein-clj-kondo "2024.11.14"]]}
:eastwood {:plugins [[jonase/eastwood "1.4.3"]]
:eastwood {:ignored-faults {:unused-ret-vals-in-try {orchard.java {:line 84}
orchard.java.parser-next-test true}}
:exclude-namespaces ~(when jdk8?
'[orchard.java.modules
orchard.java.parser-next
orchard.java.parser-next-test])}}})