/
Dependencies.scala
273 lines (247 loc) · 9.27 KB
/
Dependencies.scala
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
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/
package org.knora
import sbt.Keys._
import sbt.{Def, _}
object Dependencies {
val fusekiImage =
"daschswiss/apache-jena-fuseki:2.0.8" // should be the same version as in docker-compose.yml, also make sure to use the same version when deploying it (i.e. version in ops-deploy)!
val sipiImage = "daschswiss/sipi:3.5.0" // base image the knora-sipi image is created from
// versions
val akkaHttpVersion = "10.2.9"
val akkaVersion = "2.6.19"
val jenaVersion = "4.4.0"
val metricsVersion = "4.0.1"
val scalaVersion = "2.13.8"
val ZioVersion = "2.0.0"
val ZioHttpVersion = "2.0.0-RC4"
val ZioJsonVersion = "0.3.0-RC3"
val ZioConfigVersion = "3.0.1"
val ZioSchemaVersion = "0.2.0"
val ZioLoggingVersion = "2.0.0"
val ZioZmxVersion = "2.0.0-RC4"
val ZioPreludeVersion = "1.0.0-RC15"
// ZIO - all Scala 3 compatible
val zio = "dev.zio" %% "zio" % ZioVersion
val zioMacros = "dev.zio" %% "zio-macros" % ZioVersion
val zioHttp = "io.d11" %% "zhttp" % ZioHttpVersion
val zioJson = "dev.zio" %% "zio-json" % ZioJsonVersion
val zioPrelude = "dev.zio" %% "zio-prelude" % ZioPreludeVersion
val zioLogging = "dev.zio" %% "zio-logging" % ZioLoggingVersion
val zioLoggingSlf4j = "dev.zio" %% "zio-logging-slf4j" % ZioLoggingVersion
val zioConfig = "dev.zio" %% "zio-config" % ZioConfigVersion
val zioConfigMagnolia = "dev.zio" %% "zio-config-magnolia" % ZioConfigVersion
val zioConfigTypesafe = "dev.zio" %% "zio-config-typesafe" % ZioConfigVersion
val zioTest = "dev.zio" %% "zio-test" % "2.0.0"
val zioTestSbt = "dev.zio" %% "zio-test-sbt" % "2.0.0"
// akka
val akkaActor = "com.typesafe.akka" %% "akka-actor" % akkaVersion // Scala 3 compatible
val akkaHttp = "com.typesafe.akka" %% "akka-http" % akkaHttpVersion // Scala 3 incompatible
val akkaHttpCors = "ch.megard" %% "akka-http-cors" % "1.1.3" // Scala 3 incompatible
val akkaHttpSprayJson = "com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion // Scala 3 incompatible
val akkaSlf4j = "com.typesafe.akka" %% "akka-slf4j" % akkaVersion // Scala 3 compatible
val akkaStream = "com.typesafe.akka" %% "akka-stream" % akkaVersion // Scala 3 compatible
// jena
val jenaText = "org.apache.jena" % "jena-text" % jenaVersion
// logging
val logbackClassic = "ch.qos.logback" % "logback-classic" % "1.2.11"
val scalaLogging = "com.typesafe.scala-logging" %% "scala-logging" % "3.9.4" // Scala 3 compatible
val slf4j = "org.slf4j" % "slf4j-simple" % "1.7.36"
// Metrics
val aspectjweaver = "org.aspectj" % "aspectjweaver" % "1.9.4"
val kamonCore = "io.kamon" %% "kamon-core" % "2.5.0" // Scala 3 compatible
val kamonScalaFuture = "io.kamon" %% "kamon-scala-future" % "2.1.5" // Scala 3 incompatible
// input validation
val commonsValidator =
"commons-validator" % "commons-validator" % "1.7" exclude ("commons-logging", "commons-logging")
// authentication
val jwtSprayJson = "com.github.jwt-scala" %% "jwt-spray-json" % "9.0.2"
// jwtSprayJson -> 9.0.2 is the latest version that's compatible with spray-json; if it wasn't for spray, this would be Scala 3 compatible
val springSecurityCore =
"org.springframework.security" % "spring-security-core" % "5.7.2" exclude ("commons-logging", "commons-logging") exclude ("org.springframework", "spring-aop")
val bouncyCastle = "org.bouncycastle" % "bcprov-jdk15to18" % "1.71"
// caching
val ehcache = "net.sf.ehcache" % "ehcache" % "2.10.9.2"
val jedis = "redis.clients" % "jedis" % "4.2.1"
// serialization
val chill = "com.twitter" %% "chill" % "0.10.0" // Scala 3 incompatible
// other
val diff = "com.sksamuel.diff" % "diff" % "1.1.11"
val gwtServlet = "com.google.gwt" % "gwt-servlet" % "2.9.0"
val icu4j = "com.ibm.icu" % "icu4j" % "70.1"
val jakartaJSON = "org.glassfish" % "jakarta.json" % "2.0.1"
val jodd = "org.jodd" % "jodd" % "3.2.6"
val rdf4jClient = "org.eclipse.rdf4j" % "rdf4j-client" % "3.4.4"
val rdf4jShacl = "org.eclipse.rdf4j" % "rdf4j-shacl" % "3.4.4"
val saxonHE = "net.sf.saxon" % "Saxon-HE" % "11.4"
val scalaGraph = "org.scala-graph" %% "graph-core" % "1.13.1" // Scala 3 incompatible
val scallop = "org.rogach" %% "scallop" % "4.1.0" // Scala 3 compatible
val swaggerAkkaHttp = "com.github.swagger-akka-http" %% "swagger-akka-http" % "1.6.0" // Scala 3 incompatible
val titaniumJSONLD = "com.apicatalog" % "titanium-json-ld" % "1.3.1"
val xmlunitCore = "org.xmlunit" % "xmlunit-core" % "2.9.0"
// test
val akkaHttpTestkit = "com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion // Scala 3 incompatible
val akkaStreamTestkit = "com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion // Scala 3 compatible
val akkaTestkit = "com.typesafe.akka" %% "akka-testkit" % akkaVersion // Scala 3 compatible
val gatlingHighcharts = "io.gatling.highcharts" % "gatling-charts-highcharts" % "3.7.6"
val gatlingTestFramework = "io.gatling" % "gatling-test-framework" % "3.7.6"
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.13" // Scala 3 compatible
val testcontainers = "org.testcontainers" % "testcontainers" % "1.17.2"
// found/added by the plugin but deleted anyway
val commonsLang3 = "org.apache.commons" % "commons-lang3" % "3.12.0"
val webapiLibraryDependencies = Seq(
akkaActor,
akkaHttp,
akkaHttpCors,
akkaHttpSprayJson,
akkaHttpTestkit % Test,
akkaSlf4j % Runtime,
akkaStream,
akkaStreamTestkit % Test,
akkaTestkit % Test,
commonsValidator,
commonsLang3,
diff,
ehcache,
gatlingHighcharts % Test,
gatlingTestFramework % Test,
gwtServlet,
icu4j,
jakartaJSON,
jedis,
jenaText,
jodd,
jwtSprayJson,
kamonCore,
kamonScalaFuture,
logbackClassic % Runtime,
rdf4jClient % Test,
rdf4jShacl,
saxonHE,
scalaGraph,
scalaLogging,
scalaTest % Test,
scallop,
springSecurityCore,
bouncyCastle,
swaggerAkkaHttp,
testcontainers % Test,
titaniumJSONLD,
xmlunitCore % Test,
zio,
zioConfig,
zioConfigMagnolia,
zioConfigTypesafe,
zioHttp,
zioJson,
zioLogging,
zioLoggingSlf4j,
zioMacros,
zioPrelude,
zioTest % Test,
zioTestSbt % Test
)
val valueObjectsLibraryDependencies = Seq(
commonsLang3,
commonsValidator,
gwtServlet,
zioPrelude,
zioTest % Test,
zioTestSbt % Test
)
val dspApiMainLibraryDependencies = Seq(
zio,
zioMacros
)
// schema project dependencies
val schemaApiLibraryDependencies = Seq(
zioHttp
)
val schemaCoreLibraryDependencies = Seq(
zioPrelude
)
val schemaRepoLibraryDependencies = Seq()
val schemaRepoEventStoreServiceLibraryDependencies = Seq()
val schemaRepoSearchServiceLibraryDependencies = Seq()
// user projects dependencies
val userInterfaceLibraryDependencies = Seq(
slf4j % Test,
zio,
zioMacros,
zioTest % Test,
zioTestSbt % Test
)
val userHandlerLibraryDependencies = Seq(
bouncyCastle,
slf4j % Test,
springSecurityCore,
zio,
zioMacros,
zioTest % Test,
zioTestSbt % Test
)
val userCoreLibraryDependencies = Seq(
bouncyCastle,
slf4j % Test,
springSecurityCore,
zio,
zioMacros,
zioTest % Test,
zioTestSbt % Test
)
val userRepoLibraryDependencies = Seq(
slf4j % Test,
zio,
zioMacros,
zioTest % Test,
zioTestSbt % Test
)
// role projects dependencies
val roleInterfaceLibraryDependencies = Seq(
slf4j % Test,
zio,
zioMacros,
zioTest % Test,
zioTestSbt % Test
)
val roleHandlerLibraryDependencies = Seq(
bouncyCastle,
slf4j % Test,
springSecurityCore,
zio,
zioMacros,
zioTest % Test,
zioTestSbt % Test
)
val roleCoreLibraryDependencies = Seq(
bouncyCastle,
slf4j % Test,
springSecurityCore,
zio,
zioMacros,
zioTest % Test,
zioTestSbt % Test
)
val roleRepoLibraryDependencies = Seq(
slf4j % Test,
zio,
zioMacros,
zioTest % Test,
zioTestSbt % Test
)
// shared project dependencies
val sharedLibraryDependencies = Seq(
bouncyCastle,
commonsLang3,
commonsValidator,
gwtServlet,
scalaLogging,
slf4j % Test,
springSecurityCore,
zioPrelude,
zioTest % Test,
zioTestSbt % Test
)
}