-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
48 lines (42 loc) · 1.78 KB
/
build.sbt
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
import Dependencies.*
ThisBuild / version := "0.0.1-SNAPSHOT"
ThisBuild / scalaVersion := "2.13.15"
ThisBuild / organization := "uk.gov.nationalarchives"
lazy val root = (project in file("."))
.settings(
name := "tdr-transfer-service",
libraryDependencies ++= Seq(
authUtils,
catsEffect,
generatedGraphql,
graphqlClient,
http4sCirce,
http4sDsl,
http4sEmberServer,
keycloakMock % Test,
logbackClassic,
logBackEncoder,
metadataSchema,
mockito % Test,
pekkoTestKitHttp % Test,
pureConfig,
pureConfigCatsEffect,
scalaTest % Test,
tapirHttp4sServer,
tapirJsonCirce,
tapirSwaggerUI
)
)
(Compile / run / mainClass) := Some("uk.gov.nationalarchives.tdr.transfer.service.api.TransferServiceServer")
(Test / javaOptions) += s"-Dconfig.file=${sourceDirectory.value}/test/resources/application.conf"
(Test / fork) := true
(assembly / assemblyJarName) := "transferservice.jar"
(assembly / assemblyMergeStrategy) := {
case PathList("META-INF", "maven", "org.webjars", "swagger-ui", "pom.properties") => MergeStrategy.singleOrError
case PathList("META-INF", "resources", "webjars", "swagger-ui", _*) => MergeStrategy.singleOrError
case PathList("META-INF", x, xs @ _*) if x.toLowerCase == "services" => MergeStrategy.filterDistinctLines
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case PathList("reference.conf") => MergeStrategy.concat
case _ => MergeStrategy.first
}
(assembly / mainClass) := Some("uk.gov.nationalarchives.tdr.transfer.service.api.TransferServiceServer")