-
Notifications
You must be signed in to change notification settings - Fork 2
/
project.clj
162 lines (160 loc) · 5.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
(defn get-banner
[]
(try
(str
(slurp "resources/text/banner.txt")
;(slurp "resources/text/loading.txt")
)
;; If another project can't find the banner, just skip it.
(catch Exception _ "")))
(defn get-prompt
[ns]
(str "\u001B[35m[\u001B[34m"
ns
"\u001B[35m]\u001B[33m λ\u001B[m=> "))
(defproject gov.nasa.earthdata/cmr-process-manager "0.1.1-SNAPSHOT"
:description "Process management functionality for CMR services"
:url "https://github.com/cmr-exchange/dev-env-manager"
:license {
:name "Apache License 2.0"
:url "https://www.apache.org/licenses/LICENSE-2.0"}
:exclusions [org.clojure/clojure]
:dependencies [
[cheshire "5.8.1"]
[clojusc/trifl "0.4.0"]
[clojusc/twig "0.4.0"]
[com.stuartsierra/component "0.3.2"]
[gov.nasa.earthdata/cmr-exchange-common "0.2.0-SNAPSHOT"]
[me.raynes/conch "0.8.0"]
[org.clojure/clojure "1.9.0"]
[org.clojure/core.async "0.4.474"]]
:profiles {
;; Tasks
:ubercompile {
:aot :all}
:security {
:plugins [
[lein-nvd "0.5.5"]]
:source-paths ^:replace ["src"]
:nvd {
:suppression-file "resources/security/false-positives.xml"}
:exclusions [
;; The following are excluded due to their being flagged as a CVE
[com.google.protobuf/protobuf-java]
[com.google.javascript/closure-compiler-unshaded]]}
;; Environments
:custom-repl {
:repl-options {
:prompt ~get-prompt
;:welcome ~(print-welcome)
}}
:dev {
:dependencies [
[clojusc/ltest "0.3.0"]
[clojusc/system-manager "0.3.0-SNAPSHOT"]
[org.clojure/tools.namespace "0.2.11"]]
:source-paths [
"dev-resources/src"]
:repl-options {
:init-ns cmr.process.manager.repl
:prompt ~get-prompt
:init ~(println (get-banner))}}
:lint {
:source-paths ^:replace ["src"]
:test-paths ^:replace []
:plugins [
[jonase/eastwood "0.3.3"]
[lein-ancient "0.6.15"]
[lein-kibit "0.1.6"]]}
:test {
:dependencies [
[clojusc/ltest "0.3.0"]]
:plugins [
[lein-ltest "0.3.0"]]
:test-selectors {
:unit #(not (or (:integration %) (:system %)))
:integration :integration
:system :system
:default (complement :system)}}
:docs {
:dependencies [
[gov.nasa.earthdata/codox-theme "1.0.0-SNAPSHOT"]]
:plugins [
[lein-codox "0.10.5"]
[lein-simpleton "1.3.0"]]
:codox {
:project {:name "CMR Process Management"}
:themes [:eosdis]
:html {
:transforms [[:head]
[:append
[:script {
:src "https://cdn.earthdata.nasa.gov/tophat2/tophat2.js"
:id "earthdata-tophat-script"
:data-show-fbm "true"
:data-show-status "true"
:data-status-api-url "https://status.earthdata.nasa.gov/api/v1/notifications"
:data-status-polling-interval "10"}]]
[:body]
[:prepend
[:div {:id "earthdata-tophat2"
:style "height: 32px;"}]]
[:body]
[:append
[:script {
:src "https://fbm.earthdata.nasa.gov/for/CMR/feedback.js"
:type "text/javascript"}]]]}
:doc-paths ["resources/docs/markdown"]
:output-path "docs/current"
:namespaces [#"^cmr\.process\.manager\.(?!test)"]
:metadata {:doc/format :markdown}}}}
:aliases {
;; Dev & Testing Aliases
"repl" ["with-profile" "+custom-repl" "do"
["clean"]
["repl"]]
"ubercompile" ["with-profile" "+ubercompile,+security" "compile"]
"check-vers" ["with-profile" "+lint" "ancient" "check" ":all"]
"check-jars" ["with-profile" "+lint" "do"
["deps" ":tree"]
["deps" ":plugin-tree"]]
"check-deps" ["do"
["check-jars"]
["check-vers"]]
"ltest" ["with-profile" "+test,+system,+security" "ltest"]
;; Linting
"kibit" ["with-profile" "+lint" "kibit"]
"eastwood" ["with-profile" "+lint" "eastwood" "{:namespaces [:source-paths]}"]
"lint" ["do"
["kibit"]
;["eastwood"]
]
;; Security
"check-sec" ["with-profile" "+security" "do"
["clean"]
["nvd" "check"]]
;; Build tasks
"build-jar" ["with-profile" "+security" "jar"]
"build-uberjar" ["with-profile" "+security" "uberjar"]
"docs" ["with-profile" "+docs" "do"
["clean"]
["compile"]
["codox"]
["clean"]]
"build-lite" ["do"
["ltest" ":unit"]]
"build" ["do"
["clean"]
["check-vers"]
["check-sec"]
["ltest" ":unit"]
["ubercompile"]
["build-uberjar"]]
"build-full" ["do"
["docs"]
["build"]]
;; Publishing
"publish" ["with-profile" "+security" "do"
["clean"]
["build-jar"]
["deploy" "clojars"]]})