-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dependencies.scala
182 lines (159 loc) · 8.41 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
/*
* Copyright © 2021 - 2023 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.*
object Dependencies {
val fusekiImage =
"daschswiss/apache-jena-fuseki:2.0.13" // 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.8.1" // base image the knora-sipi image is created from
val ScalaVersion = "2.13.11"
val AkkaActorVersion = "2.6.20"
val AkkaHttpVersion = "10.2.10"
val JenaVersion = "4.8.0"
val ZioConfigVersion = "3.0.7"
val ZioHttpVersionOld = "2.0.0-RC11"
val ZioHttpVersion = "0.0.3"
val ZioJsonVersion = "0.6.0"
val ZioLoggingVersion = "2.1.14"
val ZioNioVersion = "2.0.1"
val ZioMetricsConnectorsVersion = "2.1.0"
val ZioPreludeVersion = "1.0.0-RC20"
val ZioSchemaVersion = "0.2.0"
val ZioVersion = "2.0.15"
// ZIO - all Scala 3 compatible
val zio = "dev.zio" %% "zio" % ZioVersion
val zioConfig = "dev.zio" %% "zio-config" % ZioConfigVersion
val zioConfigMagnolia = "dev.zio" %% "zio-config-magnolia" % ZioConfigVersion
val zioConfigTypesafe = "dev.zio" %% "zio-config-typesafe" % ZioConfigVersion
val zioHttpOld = "io.d11" %% "zhttp" % ZioHttpVersionOld
val zioHttp = "dev.zio" %% "zio-http" % ZioHttpVersion
val zioJson = "dev.zio" %% "zio-json" % ZioJsonVersion
val zioLogging = "dev.zio" %% "zio-logging" % ZioLoggingVersion
val zioLoggingSlf4jBridge = "dev.zio" %% "zio-logging-slf4j2-bridge" % ZioLoggingVersion
val zioNio = "dev.zio" %% "zio-nio" % ZioNioVersion
val zioMacros = "dev.zio" %% "zio-macros" % ZioVersion
val zioMetricsConnectors = "dev.zio" %% "zio-metrics-connectors" % ZioMetricsConnectorsVersion
val zioMetricsPrometheusConnector = "dev.zio" %% "zio-metrics-connectors-prometheus" % ZioMetricsConnectorsVersion
val zioPrelude = "dev.zio" %% "zio-prelude" % ZioPreludeVersion
val zioSttp = "com.softwaremill.sttp.client3" %% "zio" % "3.9.0"
// zio-test and friends
val zioTest = "dev.zio" %% "zio-test" % ZioVersion
val zioTestSbt = "dev.zio" %% "zio-test-sbt" % ZioVersion
val zioMock = "dev.zio" %% "zio-mock" % "1.0.0-RC11"
// akka
val akkaActor = "com.typesafe.akka" %% "akka-actor" % AkkaActorVersion // Scala 3 compatible
val akkaHttp = "com.typesafe.akka" %% "akka-http" % AkkaHttpVersion // Scala 3 incompatible
val akkaHttpCors = "ch.megard" %% "akka-http-cors" % "1.2.0" // Scala 3 incompatible
val akkaHttpSprayJson = "com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion // Scala 3 incompatible
val akkaSlf4j = "com.typesafe.akka" %% "akka-slf4j" % AkkaActorVersion // Scala 3 compatible
val akkaStream = "com.typesafe.akka" %% "akka-stream" % AkkaActorVersion // Scala 3 compatible
// jena
val jenaText = "org.apache.jena" % "jena-text" % JenaVersion
// logging
val scalaLogging = "com.typesafe.scala-logging" %% "scala-logging" % "3.9.5" // Scala 3 compatible
val slf4jApi = "org.slf4j" % "slf4j-api" % "2.0.7" // the logging interface
// Metrics
val aspectjweaver = "org.aspectj" % "aspectjweaver" % "1.9.19"
val kamonCore = "io.kamon" %% "kamon-core" % "2.6.3" // Scala 3 compatible
val kamonScalaFuture = "io.kamon" %% "kamon-scala-future" % "2.6.3" // 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" % "6.1.2" exclude ("commons-logging", "commons-logging") exclude ("org.springframework", "spring-aop")
val bouncyCastle = "org.bouncycastle" % "bcprov-jdk15to18" % "1.76"
// caching
val ehcache = "net.sf.ehcache" % "ehcache" % "2.10.9.2"
// 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.10.0"
val icu4j = "com.ibm.icu" % "icu4j" % "73.2"
val jakartaJSON = "org.glassfish" % "jakarta.json" % "2.0.1"
val jodd = "org.jodd" % "jodd" % "3.2.7"
val rdf4jClient = "org.eclipse.rdf4j" % "rdf4j-client" % "4.3.5"
val rdf4jShacl = "org.eclipse.rdf4j" % "rdf4j-shacl" % "4.3.5"
val saxonHE = "net.sf.saxon" % "Saxon-HE" % "12.3"
val scalaGraph = "org.scala-graph" %% "graph-core" % "1.13.6" // Scala 3 incompatible
val scallop = "org.rogach" %% "scallop" % "5.0.0" // Scala 3 compatible
val titaniumJSONLD = "com.apicatalog" % "titanium-json-ld" % "1.3.2"
val xmlunitCore = "org.xmlunit" % "xmlunit-core" % "2.9.1"
// test
val akkaHttpTestkit = "com.typesafe.akka" %% "akka-http-testkit" % AkkaHttpVersion // Scala 3 incompatible
val akkaStreamTestkit = "com.typesafe.akka" %% "akka-stream-testkit" % AkkaActorVersion // Scala 3 compatible
val akkaTestkit = "com.typesafe.akka" %% "akka-testkit" % AkkaActorVersion // Scala 3 compatible
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.16" // Scala 3 compatible
// The scoverage plugin actually adds its dependencies automatically.
// Add it redundantly to the IT dependencies in order to fix build issues with IntelliJ
// Fixes error message when running IT in IntelliJ
// A needed class was not found. This could be due to an error in your runpath.Missing class: scoverage / Invoker$
// java.lang.NoClassDefFoundError: scoverage / Invoker$
val scoverage = "org.scoverage" %% "scalac-scoverage-runtime" % "2.0.10"
val testcontainers = "org.testcontainers" % "testcontainers" % "1.18.3"
val wiremock = "com.github.tomakehurst" % "wiremock-jre8" % "2.35.0"
// found/added by the plugin but deleted anyway
val commonsLang3 = "org.apache.commons" % "commons-lang3" % "3.13.0"
val integrationTestDependencies = Seq(
akkaHttpTestkit,
akkaStreamTestkit,
akkaTestkit,
rdf4jClient,
scalaTest,
scoverage,
testcontainers,
wiremock,
xmlunitCore,
zioTest,
zioTestSbt
).map(_ % Test)
val webapiTestDependencies = Seq(zioTest, zioTestSbt, zioMock, wiremock).map(_ % Test)
val webapiDependencies = Seq(
akkaActor,
akkaHttp,
akkaHttpCors,
akkaHttpSprayJson,
akkaSlf4j,
akkaStream,
bouncyCastle,
commonsLang3,
commonsValidator,
diff,
ehcache,
gwtServlet,
icu4j,
jakartaJSON,
jenaText,
jodd,
jwtSprayJson,
kamonCore,
kamonScalaFuture,
rdf4jShacl,
saxonHE,
scalaGraph,
scalaLogging,
scallop,
slf4jApi,
springSecurityCore,
titaniumJSONLD,
zio,
zioConfig,
zioConfigMagnolia,
zioConfigTypesafe,
zioHttp,
zioJson,
zioLogging,
zioLoggingSlf4jBridge,
zioMacros,
zioMetricsConnectors,
zioMetricsPrometheusConnector,
zioNio,
zioPrelude,
zioSttp
)
}