-
Notifications
You must be signed in to change notification settings - Fork 8
/
deps.edn
133 lines (111 loc) · 7.39 KB
/
deps.edn
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
{:deps {org.clojure/clojure {:mvn/version "1.11.1"}
org.clojure/data.xml {:mvn/version "0.2.0-alpha8"}
com.fluree/alphabase {:mvn/version "3.3.0"}
;com.fluree/db {:local/root "../db"}
com.fluree/db {:git/url "https://github.com/fluree/db.git"
:sha "27999d15dcd90053119b06c6eb19c24fff137a56"}
com.fluree/raft {:mvn/version "1.0.0-beta1"}
com.fluree/crypto {:mvn/version "0.4.0"}
;; network comm
net.async/async {:mvn/version "0.1.1"}
;; Lucene
clucie/clucie {:mvn/version "0.4.2"}
;; AWS S3 API
com.cognitect.aws/api {:mvn/version "0.8.603"}
com.cognitect.aws/endpoints {:mvn/version "1.1.12.307"}
com.cognitect.aws/s3 {:mvn/version "822.2.1145.0"}
;; web server
http-kit/http-kit {:mvn/version "2.6.0"}
ring/ring-core {:mvn/version "1.9.6"}
ring-cors/ring-cors {:mvn/version "0.1.13"}
compojure/compojure {:mvn/version "1.7.0"}
;; logging
ch.qos.logback/logback-classic {:mvn/version "1.4.4"}
cambium/cambium.core {:mvn/version "1.1.1"}
cambium/cambium.codec-cheshire {:mvn/version "1.0.0"}
cambium/cambium.logback.json {:mvn/version "0.4.5"}
cambium/cambium.codec-simple {:mvn/version "1.0.0"}
cambium/cambium.logback.core {:mvn/version "0.4.5"}
;; config
;; Don't upgrade environ; it's using a specific commit in a fork to support GraalVM.
;; I haven't received any response to merging it upstream:
;; https://github.com/weavejester/environ/pull/95
environ/environ {:git/url "https://github.com/cap10morgan/environ.git"
:sha "32682e865e8248d9df09643d6321ca4259fdbc19"
:deps/root "environ"}
;; retries
robert/bruce {:mvn/version "0.8.0"}}
:paths ["src" "resources"]
:jvm-opts ["-Dclojure.tools.logging.factory=clojure.tools.logging.impl/slf4j-factory"]
:aliases
{:mvn/group-id com.fluree
:mvn/artifact-id ledger
:mvn/version "3.0.0-alpha1"
:dev
{:extra-paths ["dev" "test" "dev-resources"]
:extra-deps {org.clojure/tools.namespace {:mvn/version "1.3.0"}}}
:test
{:extra-paths ["test" "test-resources" "dev-resources"]
:extra-deps {com.cognitect/test-runner
{:git/url "https://github.com/cognitect-labs/test-runner.git"
:sha "a522ab2851a2aa5bf9c22a942b45287a3a019310"}}
:exec-fn cognitect.test-runner.api/test}
:jar
{:replace-deps {com.github.seancorfield/depstar {:mvn/version "2.1.303"}}
:exec-fn hf.depstar/jar
:exec-args {:jar "target/fluree-ledger.jar"
:group-id :mvn/group-id
:artifact-id :mvn/artifact-id
:version :mvn/version
:sync-pom true}}
:uberjar
{:replace-deps {com.github.seancorfield/depstar {:mvn/version "2.1.303"}}
:exec-fn hf.depstar/uberjar
:exec-args {:jar "target/fluree-ledger.standalone.jar"
:aot [fluree.db.server]
:main-class fluree.db.server
:group-id :mvn/group-id
:artifact-id :mvn/artifact-id
:version :mvn/version
:sync-pom true}}
:native-image
{:main-opts ["-m" "clj.native-image" "fluree.db.server"
"-H:Name=fluree-ledger" "--no-fallback"
"-H:+ReportExceptionStackTraces"
;; IncludeResources is pretty finicky. Lots of regexes I've tried don't
;; work and the logging the docs say you can turn on doesn't work.
;; So I'm just including everything for now. - WSM 2021/08/20
"-H:IncludeResources=.*"
"--enable-url-protocols=http,https"
"--enable-all-security-services"
"--report-unsupported-elements-at-runtime"
"--initialize-at-build-time"
"--allow-incomplete-classpath"
"--install-exit-handlers"
;; Most of these initialize-at-run-time classes are from https://github.com/oracle/graal/issues/2050#issuecomment-797689154
"--initialize-at-run-time=org.asynchttpclient.RequestBuilderBase,org.asynchttpclient.ntlm.NtlmEngine,io.netty.channel.kqueue.KQueue,io.netty.channel.kqueue.Native,io.netty.channel.kqueue.KQueueEventLoop,io.netty.channel.kqueue.KQueueEventArray,io.netty.util.internal.logging.Log4JLogger,io.netty.channel.epoll.Epoll,io.netty.channel.epoll.Native,io.netty.channel.epoll.EpollEventLoop,io.netty.channel.epoll.EpollEventArray,io.netty.channel.unix.Errors,io.netty.channel.unix.IovArray,io.netty.channel.unix.Limits,io.netty.channel.DefaultFileRegion,io.netty.handler.ssl.ReferenceCountedOpenSslContext,io.netty.handler.ssl.ReferenceCountedOpenSslEngine,io.netty.handler.ssl.JdkNpnApplicationProtocolNegotiator,io.netty.handler.ssl.JettyNpnSslEngine,io.netty.handler.ssl.ConscryptAlpnSslEngine,io.netty.handler.ssl.JettyAlpnSslEngine$ServerEngine,io.netty.handler.ssl.JettyAlpnSslEngine$ClientEngine,org.httpkit.client.ClientSslEngineFactory$SSLHolder,abracad.avro.ClojureData$Vars,org.apache.lucene.analysis.ja.dict.UnknownDictionary$SingletonHolder,org.apache.lucene.analysis.ja.dict.TokenInfoDictionary$SingletonHolder"
;; In theory this shouldn't be necessary w/ sufficient type hinting, but there's a bug in the go macro (I think)
;; that causes type hinting to not always work correctly inside them and you can't access fields of Java
;; types like fluree.db.flake.Flake b/c it will resort to reflection and that has to be configured under
;; graalvm native-images. I haven't figured out a minimal reproduction yet though. In the meantime, this fixes it.
"-H:ReflectionConfigurationFiles=resources/native-image-config/reflect-config.json"]
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:extra-deps {clj.native-image/clj.native-image
{:git/url "https://github.com/taylorwood/clj.native-image.git"
:sha "4604ae76855e09cdabc0a2ecc5a7de2cc5b775d6"}}}
:meta
{:main-opts ["-m" "fluree.db.meta"]}
:coverage
{:extra-paths ["test"]
:extra-deps {cloverage/cloverage {:mvn/version "1.2.4"}}
:main-opts ["-m" "cloverage.coverage" "-p" "src" "-s" "test" "--test-ns-regex" "^fluree\\.db\\.ledger\\.ledger-test*$" "--output" "scanning_results/coverage"]}
:eastwood
{:extra-deps {jonase/eastwood {:mvn/version "1.3.0"}}
:main-opts ["-m" "eastwood.lint" {:source-paths ["src"] :test-paths ["test"]
:config-files ["test-resources/eastwood-config.clj"]}]}
:ancient
{:extra-deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}
:main-opts ["-m" "antq.core" "--skip=github-action"]}
:clj-kondo
{:extra-deps {clj-kondo/clj-kondo {:mvn/version "2022.10.05"}}
:main-opts ["-m" "clj-kondo.main" "--lint" "src" "--config" ".clj-kondo/config.edn"]}}}