-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.clj
282 lines (241 loc) · 13.8 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
(defproject lupapalvelu "0.1.0-SNAPSHOT"
:description "Lupapiste permit service"
:url "https://www.lupapiste.fi"
:license {:name "European Union Public Licence v. 1.2"
:url "https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12"
:distribution :manual}
:dependencies [[org.clojure/clojure "1.11.2"]
[org.clojure/data.codec "0.2.0"]
[org.clojure/data.csv "1.1.0"]
[org.clojure/data.zip "1.1.0"]
[org.clojure/data.xml "0.0.8"]
[org.clojure/core.memoize "1.1.266"]
[org.clojure/core.match "1.1.0"]
[org.clojure/test.check "1.1.1"]
[com.gfredericks/test.chuck "0.2.14"]
[com.cognitect/transit-clj "1.0.324"]
;; Older versions do not work on M1.
[net.java.dev.jna/jna "5.7.0"]
[net.java.dev.jna/jna-platform "5.7.0"]
;; State management
[mount "0.1.16"]
;; Web frameworks
[ring "1.10.0" :exclusions [commons-fileupload org.clojure/tools.reader]]
[noir "1.3.0" :exclusions [compojure clj-stacktrace org.clojure/tools.macro ring hiccup bultitude]]
[org.clojure/tools.macro "0.2.0"]
[compojure "1.1.9" :exclusions [org.clojure/tools.macro ring]] ; force noir to use newer version
[metosin/ring-swagger "0.26.2"]
[metosin/ring-swagger-ui "4.15.5"]
[metosin/reitit-core "0.6.0"]
[metosin/reitit-schema "0.6.0"]
[metosin/reitit-ring "0.6.0"]
[metosin/reitit-middleware "0.6.0"]
[metosin/spec-tools "0.10.6"] ; for reitit-middleware
;; Namespace finder library
[bultitude "0.2.8"] ; noir requires 0.2.0
[org.tcrawley/dynapath "1.0.0"] ; bultitudes requires 0.2.3, but midje needs 1.0.0, should be compatible
;; MongoDB driver
;; 3.x should be compatible with monger, 3.12 is also tested as being MongoDB 5.0 compatible
[org.mongodb/mongodb-driver "3.12.14"]
[com.novemberain/monger "3.6.0" :exclusions [com.google.guava/guava]]
;; Define explicit version of guava for compatibility
[com.google.guava/guava "32.1.2-jre"]
;; GCS Library
[com.google.cloud/google-cloud-storage "2.26.0" :exclusions [[com.google.guava/guava]]]
[fi.lupapiste/pubsub-client "2.5.3"]
;; UUID Library
[danlentz/clj-uuid "0.1.7"]
;; Logging
[com.taoensso/timbre "6.3.1"]
[viesti/timbre-json-appender "0.2.12"]
[org.apache.logging.log4j/log4j-to-slf4j "2.22.1"]
[org.slf4j/slf4j-api "2.0.12"]
[org.slf4j/jcl-over-slf4j "2.0.12"]
[org.slf4j/jul-to-slf4j "2.0.12"]
[org.slf4j/log4j-over-slf4j "2.0.12"]
[com.fzakaria/slf4j-timbre "0.4.1"]
;; markup processing
[enlive "1.1.6"]
[com.vladsch.flexmark/flexmark "0.62.2"]
[com.vladsch.flexmark/flexmark-ext-tables "0.62.2"]
[com.vladsch.flexmark/flexmark-ext-autolink "0.62.2"]
[cljstache "2.0.1"]
[com.googlecode.htmlcompressor/htmlcompressor "1.5.2"]
[hiccup "1.0.5"]
;; Html email templates
[selmer "1.12.59"]
;; CSS
[garden "1.3.3"]
;; Encryption and secure hashing
[org.jasypt/jasypt "1.9.3"]
[org.mindrot/jbcrypt "0.4"]
[pandect "0.6.1"]
[lupapiste/crypto "0.1.3"]
[com.nulab-inc/zxcvbn "1.8.2"]
;; JSON
[metosin/jsonista "0.3.8"]
;; cheshire not used directly, but otherwise metosin/ring-swagger pulls in an older version
[cheshire "5.12.0"]
[luposlip/json-schema "0.1.8"]
;; HTTP client
[clj-http "3.4.1" :exclusions [commons-codec]]
[hato "0.9.0"]
;; HTTP server
[org.eclipse.jetty/jetty-server "10.0.17"]
;; Email validation, provides javax.mail packages
[com.sun.mail/jakarta.mail "1.6.5"]
;; Apache Commons
[org.apache.commons/commons-lang3 "3.12.0"]
[commons-io "2.11.0"]
;; only some of dependencies use commons-codec, it's mostly replaced by java.util.Base64
[commons-codec "1.15"]
[commons-discovery "0.5"]
;; Parallellism
[org.clj-commons/claypoole "1.2.2"]
;; Joda time wrapper
[clj-time "0.15.2"]
;; Country code manipulation
[iso-country-codes "1.0"]
;; String case manipulation
[camel-snake-kebab "0.4.3"]
;; Collection of arrow macros
[swiss-arrows "1.0.0"]
;; File system lib
[me.raynes/fs "1.4.6" :exclusions [org.apache.commons/commons-compress]] ; later version required by pantomime -> tika
[babashka/fs "0.3.17"]
[org.babashka/cli "0.8.59"]
;; Enhanced try and throw
[slingshot "0.12.2"]
;; A Clojure(Script) library for declarative data description and validation
[prismatic/schema "1.4.1"]
[prismatic/schema-generators "0.1.5"]
[metosin/schema-tools "0.13.1"]
;; MIME type resolution
[org.apache.tika/tika-core "2.3.0"]
[com.novemberain/pantomime "2.11.0" :exclusions [org.apache.tika/tika-parsers]]
;; MS Office document processing
[dk.ative/docjure "1.19.0"]
;; JavaScript and CSS compression
[com.yahoo.platform.yui/yuicompressor "2.4.8" :exclusions [rhino/js org.mozilla/rhino]] ; http://jira.xwiki.org/browse/XWIKI-6148?focusedCommentId=59523#comment-59523
;; Geo location libs
;; WKT parser
[cljts "0.3.0-20150228.035522-2" :exclusions [xerces/xercesImpl]]
;; Coordinate conversions, shape file handling etc.
[org.geotools/gt-main "19.3"]
[org.geotools/gt-shapefile "19.3"]
[org.geotools/gt-geojson "19.3"]
[org.geotools/gt-referencing "19.3"]
[org.geotools/gt-epsg-wkt "19.3"]
;; AD Login
[com.taoensso/nippy "3.1.1" :exclusions [org.clojure/tools.reader]]
;; Lupapiste libraries
;; Shared domain code (https://github.com/lupapiste/commons)
[lupapiste/commons "5.2.14"
:exclusions [org.clojure/core.memoize
prismatic/schema
commons-codec
org.clojure/data.priority-map]]
;; Smoke test lib (https://github.com/lupapiste/mongocheck)
[lupapiste/mongocheck "0.1.5"]
;; Wrapper for clj-pdf for PDF/A document generation
[lupapiste/pdfa-generator "1.1.1" :exclusions [org.clojure/tools.reader
xalan]]
;; JMX-server with socket reuse
[lupapiste/jmx-server "0.1.0"]
;; SAML 2.0 -support
;; consider metabase/saml20-clj?
[kirasystems/saml20-clj "0.1.16" :exclusions [org.apache.santuario/xmlsec]]
[org.apache.santuario/xmlsec "2.3.4"]
;; XML Envelope signatures
[org.apache.axis2/axis2-kernel "1.8.0"]
[org.apache.axis2/axis2-saaj "1.8.0" :exclusions [org.apache.logging.log4j/log4j-jcl]]
[org.apache.ws.security/wss4j "1.6.19"]
[org.glassfish/javax.xml.rpc "3.1.1"]
;; Tiedonohjaus classes use jaxb
[org.glassfish.jaxb/jaxb-runtime "2.4.0-b180830.0438"]
;; For SFTP
[com.raspasov/clj-ssh "0.5.12"]
;; Fast Excel
[org.dhatim/fastexcel "0.17.0"]
[org.dhatim/fastexcel-reader "0.17.0"]
;; Rum also used in backend
[rum "0.12.11" :exclusions [cljsjs/react cljsjs/react-dom]]]
:plugins [[lein-shell "0.5.0"]
[lein-pdo "0.1.1"]
[lupapiste/lein-midje "3.2.2"]
[jonase/eastwood "0.2.3" :exclusions [org.clojure/tools.namespace org.clojure/clojure]]
[lupapiste/lein-buildid "0.4.2"]
[lupapiste/lein-nitpicker "0.6.0"]
[mvxcvi/whidbey "2.2.0"]]
:middleware [whidbey.plugin/repl-pprint]
:clean-targets ^{:protect false} ["resources/public/lp-static/js/"
:target-path]
:source-paths ["src" "src-cljc"]
:java-source-paths ["java-src"]
:javac-options ["-source" "11" "-target" "11"]
:test-paths ["test-utils" "test"]
:profiles {:dev {:dependencies [[midje "1.10.10"]
[ring/ring-mock "0.4.0" :exclusions [ring/ring-codec]]
[rhizome "0.2.9"]
[pdfboxing "0.1.14"]]
:resource-paths ["dev-resources"]
:source-paths ["dev-src"]
:jvm-opts ["-Djava.awt.headless=true" "-Xmx2G" "-Dfile.encoding=UTF-8"]
:eastwood {:continue-on-exception true
:source-paths ["src"]
:test-paths []}}
:repl {:test-paths ["itest-utils"]}
:uberjar {:main lupapalvelu.main
:prep-tasks ["javac" "compile"]
;; the default will also wipe JS files from lp-static/js (by design)
;; but when building uberjar we don't want that to happen
:clean-targets ^:replace [:target-path]}
:itest {:test-paths ^:replace ["test-utils" "itest-utils" "itest"]}
:stest {:test-paths ^:replace ["test-utils" "itest-utils" "stest"]}
:alltests {:source-paths ["test" "itest" "stest"]
:jvm-opts ["-Djava.awt.headless=true" "-Xmx1G"]}
:intellij {:source-paths ["src-cljs"]
:test-paths ["test-utils" "itest" "stest"]}
:lupadev {:jvm-opts ["-Dtarget_server=https://www-dev.lupapiste.fi" "-Djava.awt.headless=true"]}
:lupatest {:jvm-opts ["-Dtarget_server=https://www-test.lupapiste.fi" "-Djava.awt.headless=true"]}
:shadow {:source-paths ^:replace ["src-cljs" "src-cljc" "dev-src-cljs"]
:aot ^:replace []
:dependencies [[thheller/shadow-cljs "2.28.2"]
[cljs-ajax "0.8.4"]
[reagent "1.2.0" :exclusions [cljsjs/react cljsjs/react-dom cljsjs/react-dom-server]]
[re-frame "1.4.3" :exclusions [reagent]]
[com.7theta/re-frame-fx "0.2.1" :exclusions [re-frame]]
[org.clojure/tools.reader "1.4.0"] ; edn reader for CLJS
[com.andrewmcveigh/cljs-time "0.5.2"]
[metosin/reitit-core "0.6.0"]
[metosin/reitit-frontend "0.6.0"]
[metosin/reitit-spec "0.6.0"]
[metosin/reitit-schema "0.6.0"]
[funcool/promesa "9.0.489"]
[binaryage/devtools "1.0.7"]]}}
:jvm-opts ["-Dfile.encoding=UTF-8"]
:nitpicker {:exts ["clj" "js" "html"]
:excludes [#"jquery" #"underscore" #"terms\.html" #"\/email-templates\/" #"proj4" #".debug" #"lp-static/js/"]}
:repositories [["osgeo" {:url "https://repo.osgeo.org/repository/release/"}]]
:aliases {"integration" ["midje"] ;; Called by CI job that sets other params
"integration-parallel" ["trampoline" "run" "-m" "lupapalvelu.itest-main"]
"itest" ["with-profile" "dev,itest" "midje"]
"stest" ["with-profile" "dev,stest" "midje"]
"verify" ["with-profile" "dev,alltests" "do" "nitpicker," "midje"]
"sass" ["shell" "npm" "run" "sass:prod:once"]
"front" ["do"
["clean"]
["shell" "npm" "run" "symlink-map"]
["pdo"
["shell" "npm" "run" "sass:dev:watch"]
["shell" "npx" "shadow-cljs" "watch" "front"]]]
"front:prod" ["do"
["shell" "npm" "run" "sass:prod:once"]
["shell" "npx" "shadow-cljs" "release" "front"]]}
:aot [lupapalvelu.main clj-time.core]
:main ^:skip-aot lupapalvelu.server
:repl-options {:init-ns user
:timeout 220000}
:pom-plugins [[org.fusesource.mvnplugins/maven-graph-plugin "1.4"]
[com.googlecode.maven-overview-plugin/maven-overview-plugin "1.6"]]
:min-lein-version "2.5.0")