-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathproject.clj
More file actions
158 lines (146 loc) · 9.11 KB
/
Copy pathproject.clj
File metadata and controls
158 lines (146 loc) · 9.11 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
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
(defproject rems "2.39.1"
:description "Resource Entitlement Management System is a tool for managing access rights to resources, such as research datasets."
:url "https://github.com/CSCfi/rems"
:dependencies [[better-cond "2.1.5"]
[binaryage/devtools "1.0.7"]
[buddy/buddy-auth "3.0.323"]
[buddy/buddy-sign "3.6.1-359"]
[ch.qos.logback/logback-classic "1.5.38"]
[clj-http "3.13.1"]
[clj-pdf "2.8.0"]
[clj-time "0.15.2"]
^{:antq/exclude ["0.8.5" "0.8.x" "0.9"]} [conman "0.8.4"] ; 0.8.5 switches to next.jdbc, which breaks stuff and requires proper testing in production
[com.attendify/schema-refined "0.3.0-alpha5"]
[com.clojure-goes-fast/clj-async-profiler "1.7.0"] ; also check extra :jvm-opts https://github.com/clojure-goes-fast/clj-async-profiler?tab=readme-ov-file#tuning-for-better-accuracy
[com.clojure-goes-fast/clj-memory-meter "0.5.0"]
[com.cognitect/transit-clj "1.1.357"]
[com.draines/postal "2.0.5"]
[com.fasterxml.jackson.datatype/jackson-datatype-joda "2.22.1"]
^{:antq/exclude "2"} [com.icegreen/greenmail "1.6.15"]
[com.nextjournal/beholder "1.0.3"]
[com.rpl/specter "1.1.6"]
[com.stuartsierra/dependency "1.0.0"]
[com.taoensso/tempura "1.5.4"]
[compojure "1.7.2"]
[cprop "0.1.21"]
[criterium "0.4.6"]
[dev.weavejester/medley "1.10.0"]
[etaoin "1.1.43"]
[garden "1.3.10"]
[hiccup "2.0.0"]
[javax.xml.bind/jaxb-api "2.4.0-b180830.0359"]
[lambdaisland/kaocha "1.91.1392"]
[lambdaisland/kaocha-junit-xml "1.17.101"]
[luminus-jetty "0.2.3"]
[luminus-nrepl "0.1.7"]
^{:antq/exclude ["0.7.3" "0.7.x"]} [luminus-migrations "0.7.2"] ; 0.7.3 switches to next.jdbc, 0.7.5 fails: No such var: prepare/statement
[luminus/ring-ttl-session "0.3.3"]
[macroz/tangle "0.2.2"]
[markdown-clj "1.12.8"]
[metosin/compojure-api "2.0.0-alpha33"]
[metosin/jsonista "1.0.0"]
[metosin/ring-swagger "1.1.0"]
[metosin/ring-swagger-ui "5.32.6"]
[mount "0.1.24"]
[nano-id "1.1.0"]
[ns-tracker "1.0.0"]
[nubank/matcher-combinators "3.10.1"]
^{:antq/exclude "10"} [org.apache.lucene/lucene-core "9.12.3"] ; Next major release 10.4.x available but multiple tests throw a java.lang.IllegalArgumentException: No matching method doc found taking 1 args for class org.apache.lucene.search.IndexSearcher
^{:antq/exclude "10"} [org.apache.lucene/lucene-queryparser "9.12.3"] ;... java.lang.IllegalArgumentException: No matching method doc ...
[org.babashka/sci "0.15.56"]
[org.clojure/clojure "1.12.5"]
[org.clojure/core.cache "1.2.263"]
[org.clojure/core.memoize "1.2.281"]
[org.clojure/data.csv "1.1.1"]
[org.clojure/data.xml "0.0.8"]
[org.clojure/tools.cli "1.4.256"]
[org.clojure/tools.logging "1.3.1"]
[org.postgresql/postgresql "42.7.13"]
^{:antq/exclude "2"} [org.webjars.bower/tether "1.4.7"] ; doesn't work with "2.0.0-beta.5", error serving the file
[org.webjars.npm/axe-core "4.11.3"]
[org.webjars.npm/better-dateinput-polyfill "4.0.0-beta.2"]
[org.webjars.npm/popper.js "1.16.1"]
^{:antq/exclude "5"} [org.webjars/bootstrap "4.6.2"] ; latest before 5.x series
^{:antq/exclude ["6.2.x" "6.x" "7"]} [org.webjars/font-awesome "6.1.0"] ; icons don't work with "6.2.0"
^{:antq/exclude "4"} [org.webjars/jquery "3.7.1"] ; bootstrap 4 only supports jquery 3 https://github.com/twbs/bootstrap/blob/v4.6.2/package.json#L122
[peridot "0.5.4"]
[prismatic/schema-generators "0.1.5"]
[ring-cors "0.1.13"]
[ring-webjars "0.3.1"]
[ring/ring-core "1.15.5"]
[ring/ring-defaults "0.7.1"]
[ring/ring-devel "1.15.5"]
[ring/ring-mock "0.6.2"]
[se.haleby/stub-http "0.2.14"]]
:managed-dependencies [^{:required-by "clj-http"} [commons-codec "1.22.0"]
^{:required-by "clj-http"} [commons-io "2.22.0"]
^{:required-by "ring-swagger"} [com.google.code.findbugs/jsr305 "3.0.2"]
^{:required-by "postal"
:antq/exclude "2"} [com.sun.mail/jakarta.mail "1.6.8"]
^{:required-by "luminus-jetty"} [info.sunng/ring-jetty9-adapter "0.40.2"]
^{:required-by "clj-time"} [joda-time "2.14.2"]
^{:required-by "ring-webjars"} [org.apache.commons/commons-lang3 "3.20.0"]
^{:required-by "clj-pdf"} [org.apache.xmlgraphics/xmlgraphics-commons "2.11"]
^{:required-by "buddy-core"} [org.bouncycastle/bcpkix-jdk18on "1.85"]
^{:required-by "buddy-core"} [org.bouncycastle/bcprov-jdk18on "1.85"]
^{:required-by "tempura"} [org.clojure/tools.reader "1.6.0"]
^{:required-by "tangle"} [org.flatland/ordered "1.15.12"]
^{:required-by "clj-pdf"} [org.jfree/jfreechart "1.5.6"]
^{:required-by "ring-swagger"} [org.mozilla/rhino "1.9.1"]
^{:required-by ["rems"
"peridot"
"ring-swagger"
"schema-refined"]} [prismatic/schema "1.4.1"]
^{:required-by "specter"} [riddley "0.2.2"]]
:min-lein-version "2.9.8"
:source-paths ["src/clj" "src/cljc" "test/clj" "test/cljc"] ; also include tests in classpath
:java-source-paths ["src/java"]
:javac-options ["--release" "8"]
:test-paths ["src/clj" "src/cljc" "test/clj" "test/cljc"] ; also run tests from src files
:resource-paths ["resources" "target/shadow"]
:target-path "target/%s/"
:main rems.main
:migratus {:store :database :db ~(get (System/getenv) "DATABASE_URL" "postgresql://localhost/rems?user=rems")}
:plugins [[dev.weavejester/lein-cljfmt "0.16.5"]
[lein-shell "0.5.0"]
[migratus-lein "0.7.3"]
[com.github.liquidz/antq "RELEASE"]
[us.technomancy/lein-unused-deps "0.2.0"]]
:antq {}
:cljfmt {:load-config-file? true} ; reads from root .cljfmt.edn
:clean-targets ["target"]
:aliases {"npm-deps" ["shell" "sh" "-c" "npm run deps-ci"] ; npm ci always removes node_modules by design, which is unnecessary and time consuming
"shadow-build" ["do" ["npm-deps"] ["shell" "sh" "-c" "npm run shadow-build"]]
"shadow-release" ["do" ["npm-deps"] ["shell" "sh" "-c" "npm run shadow-release"]]
"shadow-test" ["do" ["npm-deps"] ["shell" "sh" "-c" "npm run shadow-test"]]
"shadow-watch" ["do" ["npm-deps"] ["shell" "sh" "-c" "npm run shadow-watch"]]
"kaocha" ["with-profile" "test" "run" "-m" "kaocha.runner"]
"browsertests" ["do" ["shadow-build"] ["kaocha" "browser"]]
"alltests" ["do" ["shadow-build"] ["kaocha"] ["shadow-test"]]
"test-ancient" ["do" ["shadow-build"] ["kaocha"] ["shadow-test"]]} ; for lein ancient to work and run all tests
:profiles
{:uberjar {:omit-source true
:prep-tasks [["shell" "sh" "-c" "mkdir -p target/uberjar/resources"]
["shell" "sh" "-c" "git describe --tags --long --always --dirty=-custom > target/uberjar/resources/git-describe.txt"]
["shell" "sh" "-c" "git rev-parse HEAD > target/uberjar/resources/git-revision.txt"]
"javac"
"compile"
"shadow-release"]
:aot :all
:uberjar-name "rems.jar"
:source-paths ["env/prod/clj"]
:resource-paths ["env/prod/resources" "target/uberjar/resources"]}
:dev [:project/dev :profiles/dev]
:test [:project/dev :project/test :profiles/test]
:project/dev {:plugins [[lein-ancient "1.0.0"]]
:jvm-opts ["-Drems.config=dev-config.edn"
"-Djdk.attach.allowAttachSelf" ; needed by clj-memory-meter on Java 9+
"-XX:-OmitStackTraceInFastThrow"]
:source-paths ["env/dev/clj"]
:resource-paths ["env/dev/resources"]
:repl-options {:init-ns rems
:welcome (rems/repl-help)}}
:project/test {:jvm-opts ["-Drems.config=test-config.edn"]
:resource-paths ["env/test/resources"]}
:profiles/dev {}
:profiles/test {}})