-
Notifications
You must be signed in to change notification settings - Fork 9
/
project.clj
62 lines (44 loc) · 3.03 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
(def project-version (if (System/getenv "CIRCLE_TAG")
(doto (System/getenv "PROJECT_VERSION") assert)
(or (not-empty (System/getenv "PROJECT_VERSION"))
"RELEASE")))
(defproject mx.cider/enrich-classpath project-version
:description "Makes available .jars with Java sources and javadocs for a given project."
:url "https://github.com/clojure-emacs/enrich-classpath"
:license {:name "EPL-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [^:inline-dep [fipp "0.6.25" :exclusions [org.clojure/clojure]]
[org.clojure/clojure "1.11.1"] ;; Hard-require a recent-enough version of Clojure, since other plugins may require an overly old one which would make Fipp fail.
]
:pedantic? ~(if (System/getenv "CI")
:abort
;; :pedantic? can be problematic for certain local dev workflows:
false)
:eval-in-leiningen ~(nil? (System/getenv "no_eval_in_leiningen"))
:plugins [[thomasa/mranderson "0.5.4-SNAPSHOT"]]
:jvm-opts ["-Dclojure.main.report=stderr"]
:mranderson {:project-prefix "cider.enrich-classpath.inlined-deps"
:expositions []
:unresolved-tree false}
:deploy-repositories [["clojars" {:url "https://clojars.org/repo"
:username :env/clojars_username
:password :env/clojars_password
:sign-releases false}]]
:java-source-paths ["java"]
:profiles {;; Helps developing the plugin when (false? eval-in-leiningen):
:test {:dependencies [[clj-commons/pomegranate "1.2.23"]]}
:integration-testing {:source-paths ["integration-testing"]}
:self-test {:middleware [cider.enrich-classpath/middleware]
:plugins [[mx.cider/enrich-classpath ~project-version]]
:jvm-opts ["-Dcider.enrich-classpath.throw=true"]
;; ensure that at least one dependency will fetch sources:
:dependencies [[puppetlabs/trapperkeeper-webserver-jetty9 "4.1.0"]]
:managed-dependencies [[commons-codec "1.10"]
[org.slf4j/slf4j-api "1.7.25"]
[org.clojure/tools.reader "1.0.0-beta4"]]}
:shorten {:enrich-classpath {:shorten true}}
:eastwood {:plugins [[jonase/eastwood "1.4.0"]]
:eastwood {:add-linters [:boxed-math
:performance]}}
:deploy {:source-paths [".circleci"]}}
:aliases {"integration-test" ["with-profile" "-user,-dev,+test,+integration-testing" "run" "-m" "integration-test"]})