-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
67 lines (64 loc) · 3.83 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
(defproject lupadoku "0.1.0-SNAPSHOT"
:description "Lupapiste document search application"
: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}
:repositories [["osgeo" {:url "https://repo.osgeo.org/repository/release/"}]]
:dependencies [;; Clojure
[org.clojure/clojure "1.11.1"]
[http-kit "2.6.0"]
[ring/ring-core "1.10.0"]
[compojure "1.7.0"]
[com.stuartsierra/component "1.1.0"]
[com.taoensso/timbre "6.2.2"]
[viesti/timbre-json-appender "0.2.8"]
;; Logback 1.2 is not compatible with SLF4J 2.0+
[org.slf4j/slf4j-api "1.7.36"]
[org.slf4j/jcl-over-slf4j "1.7.36"]
[org.slf4j/jul-to-slf4j "1.7.36"]
[org.slf4j/log4j-over-slf4j "1.7.36"]
[ch.qos.logback/logback-classic "1.2.13" :exclusions [org.slf4j/slf4j-api]]
;; 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]]
[com.cemerick/url "0.1.1"]
[clj-time "0.15.2"]
[metosin/muuntaja "0.6.8"]
;; Lupapiste
[lupapiste/commons "5.2.13"]
[lupapiste/document-search-commons "2.0.7" :exclusions [lupapiste/commons
org.clojure/clojurescript]]
;; ClojureScript
[org.clojure/clojurescript "1.11.60"]]
:main ^:skip-aot lupadoku.app
:target-path "target/%s/"
:profiles {:dev {:source-paths ["dev"]
:dependencies [[reloaded.repl "0.2.4"]]
:plugins [[lein-shell "0.5.0"]]}
:cljs {:source-paths ["src/cljs"
"src/cljc"
"checkouts/document-search-commons/src/cljs"
"checkouts/document-search-commons/src/cljc"]
:dependencies [[com.google.javascript/closure-compiler-unshaded "v20230411"]
[org.clojure/google-closure-library "0.0-20230227-c7c0a541"]
[org.clojure/google-closure-library-third-party "0.0-20230227-c7c0a541"]
[thheller/shadow-cljs "2.25.4"]]}
:uberjar {:aot :all
:prep-tasks ^:replace ["clean"
["shell" "npm" "ci"]
["with-profile" "cljs" "run" "-m" "shadow.cljs.devtools.cli" "release" "prod"]
"javac"
"compile"]}}
:uberjar-name "lupadoku.jar"
:source-paths ["src/clj" "src/cljc" "src/cljs"]
:clean-targets ^{:protect false} ["resources/public/js/"
:target-path]
:repl-options {:init-ns user}
:javac-options ["-source" "11" "-target" "11"]
:manifest {:build-info {"git-commit" ~(fn [_] (.trim (:out (clojure.java.shell/sh "git" "rev-parse" "--verify" "HEAD"))))
"build" ~(fn [_] (or (System/getenv "BUILD_TAG") "unknown"))}}
:aliases {"extract-strings" ["run" "-m" "lupapiste-commons.i18n.extract/extract-strings" "t"]
"front" ["do"
["shell" "npm" "install"]
["with-profile" "cljs" "run" "-m" "shadow.cljs.devtools.cli" "--npm" "watch" "dev"]]})