-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
42 lines (38 loc) · 1.13 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
import Dependencies._
ThisBuild / scalaVersion := "2.13.15"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "uk.gov.nationalarchives"
lazy val root = (project in file("."))
.settings(
name := "tdr-draft-metadata-validator",
libraryDependencies ++= Seq(
scalaCsv,
typeSafeConfig,
awsLambda,
awsLambdaJavaEvents,
awsSsm,
metadataValidation,
metadataSchema,
schemaUtils,
generatedGraphql,
graphqlClient,
authUtils,
s3Utils,
log4catsSlf4j,
circeGenericExtras,
circeGeneric,
circeCore,
circeParser,
scalaTest % Test,
mockitoScala % Test,
mockitoScalaTest % Test
),
assembly / assemblyJarName := "draft-metadata-validator.jar"
)
(assembly / assemblyMergeStrategy) := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case _ => MergeStrategy.first
}
(Test / fork) := true
(Test / javaOptions) += s"-Dconfig.file=${sourceDirectory.value}/test/resources/application.conf"
(Test / envVars) := Map("AWS_ACCESS_KEY_ID" -> "test", "AWS_SECRET_ACCESS_KEY" -> "test")