-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
64 lines (39 loc) · 2.08 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import sbtassembly.MergeStrategy
name := "ClientMonitorApi"
enablePlugins(FlywayPlugin)
version := "0.1"
scalaVersion := "2.12.8"
libraryDependencies += "com.typesafe.akka" %% "akka-http" % "10.1.8"
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.5.21"
libraryDependencies += "com.typesafe.akka" %% "akka-http-spray-json" % "10.1.8"
libraryDependencies += "com.zaxxer" % "HikariCP" % "3.3.1"
libraryDependencies += "org.postgresql" % "postgresql" % "9.4-1200-jdbc41"
libraryDependencies += "org.flywaydb" % "flyway-core" % "5.2.4"
libraryDependencies += "ch.megard" %% "akka-http-cors" % "0.4.0"
libraryDependencies += "com.auth0" % "java-jwt" % "3.8.0"
libraryDependencies += "com.typesafe.akka" %% "akka-slf4j" % "2.5.21"
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.30"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3"
libraryDependencies += "software.amazon.awssdk" % "s3" % "2.10.71"
libraryDependencies += "com.sksamuel.scrimage" % "scrimage-core" % "4.0.0"
libraryDependencies += "com.amazonaws" % "aws-java-sdk-ses" % "1.11.734"
libraryDependencies += "org.scalamock" %% "scalamock" % "4.1.0" % Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.4" % Test
libraryDependencies += "org.scalaj" %% "scalaj-http" % "2.4.1" % Test
libraryDependencies += "com.typesafe.akka" %% "akka-stream-testkit" % "2.5.19" % Test
libraryDependencies += "com.typesafe.akka" %% "akka-http-testkit" % "10.1.8" % Test
libraryDependencies ~= {
_.map(
_.exclude("org.slf4j", "slf4j-simple")
)
}
assemblyMergeStrategy in assembly := {
case x if x.contains("io.netty.versions.properties") => MergeStrategy.discard
case x if x.contains("module-info.class") => MergeStrategy.discard
case x if x.contains("Static") && x.contains("Binder") => MergeStrategy.last
case PathList("org", "slf4j", xs@_*) => MergeStrategy.last
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
testOptions in Test += Tests.Argument(TestFrameworks.ScalaTest, "-n", "org.downtowndailybread.bethsaida.tag.UnitTest", "-oD")