-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathproject.clj
More file actions
84 lines (82 loc) · 5.04 KB
/
project.clj
File metadata and controls
84 lines (82 loc) · 5.04 KB
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
(defproject nasa-cmr/cmr-spatial-lib "0.1.0-SNAPSHOT"
:description "A spatial library for the CMR."
:url "https://github.com/nasa/Common-Metadata-Repository/tree/master/spatial-lib"
:java-source-paths ["src/java"]
:dependencies [[nasa-cmr/cmr-common-lib "0.1.1-SNAPSHOT"]
[net.jafama/jafama "2.3.1"]
[net.mikera/core.matrix "0.54.0"]
[net.mikera/vectorz-clj "0.28.0"]
[org.clojure/clojure "1.11.2"]
[org.clojure/math.combinatorics "0.1.4"]
[pjstadig/assertions "0.2.0"]
[primitive-math "0.1.4"]]
;; NOTE: If making a standalone jar for this project, then temporarily un-commement the following
;; line so that the main function in runner.clj will run by default from the jar. Doing this in
;; the parent context of the larger CMR uberjar will not work as in that case another function
;; needs to be defined as the primary entry point.
;; :main cmr.spatial.runner
:plugins [[lein-shell "0.5.0"]]
:global-vars {*warn-on-reflection* true}
;; The ^replace is done to disable the tiered compilation for accurate benchmarks
;; See https://github.com/technomancy/leiningen/wiki/Faster
:jvm-opts ^:replace ["-server"
"-Dclojure.compiler.direct-linking=true"]
:profiles {:security {:plugins [[com.livingsocial/lein-dependency-check "1.4.1"]]
:dependency-check {:output-format [:all]
:suppression-file "resources/security/suppression.xml"}}
:dev {:dependencies [[criterium "0.4.4"]
[org.clojars.gjahad/debug-repl "0.3.3"]
[org.clojure/tools.namespace "0.2.11"]
[org.clojure/tools.nrepl "0.2.13"]
[pjstadig/humane-test-output "0.9.0"]
[proto-repl "0.3.1"]]
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]
:jvm-opts ^:replace ["-server"]
;; Uncomment this to enable assertions. Turn off during performance tests.
; "-ea"
;; Use the following to enable JMX profiling with visualvm
; "-Dcom.sun.management.jmxremote"
; "-Dcom.sun.management.jmxremote.ssl=false"
; "-Dcom.sun.management.jmxremote.authenticate=false"
; "-Dcom.sun.management.jmxremote.port=1098"]
:source-paths ["src" "dev" "test"]}
:static {}
:uberjar {:main cmr.spatial.runner
:aot :all}
;; This profile is used for linting and static analysis. To run for this
;; project, use `lein lint` from inside the project directory. To run for
;; all projects at the same time, use the same command but from the top-
;; level directory.
:lint {:source-paths ^:replace ["src"]
:test-paths ^:replace []
:global-vars {*warn-on-reflection* false}
:plugins [[jonase/eastwood "1.4.2"]
[lein-ancient "0.7.0"]
[lein-bikeshed "0.5.2"]
[lein-kibit "0.1.8"]]}
;; The following profile is overriden on the build server or in the user's
;; ~/.lein/profiles.clj file.
:internal-repos {}
:kaocha {:dependencies [[lambdaisland/kaocha "1.0.732"]
;; [lambdaisland/kaocha-cloverage "1.0.75"]
[lambdaisland/kaocha-junit-xml "0.0.76"]]}}
:aliases {;; Kaocha test aliases
;; refer to tests.edn for test configuration
"kaocha" ["with-profile" "+kaocha" "run" "-m" "kaocha.runner"]
"itest" ["kaocha" "--focus" ":integration"]
"utest" ["kaocha" "--focus" ":unit"]
"ci-test" ["kaocha" "--profile" ":ci"]
"ci-itest" ["itest" "--profile" ":ci"]
"ci-utest" ["utest" "--profile" ":ci"]
;; Linting aliases
"kibit" ["do"
["with-profile" "lint" "shell" "echo" "== Kibit =="]
["with-profile" "lint" "kibit"]]
"kondo" ["do" ["shell" "clj-kondo" "--lint" "src" "--lint" "test" "'-parallel"]] '"eastwood" ["with-profile" "lint" "eastwood" "{:namespaces [:source-paths]}"]
"bikeshed" ["with-profile" "lint" "bikeshed" "--max-line-length=100"]
"check-deps" ["with-profile" "lint" "ancient" ":all"]
"check-sec" ["with-profile" "security" "dependency-check"]
"lint" ["do" ["check"] ["kibit"] ["kondo"]]
;; Placeholder for future docs and enabler of top-level alias
"generate-static" ["with-profile" "static" "shell" "echo"]})