-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
56 lines (52 loc) · 2.4 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
import sbtassembly.Log4j2MergeStrategy
import sbtrelease.Version
val versions = new {
val xray = "2.2.1"
val reactiveAwsClient = "1.1.3"
}
lazy val commonSettings = Seq(
resolvers += Resolver.sonatypeRepo("public"),
scalaVersion := "2.12.8",
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-Xlint",
"-Xfatal-warnings"
),
scalacOptions in (Test, console) := Seq()
)
lazy val app = (project in file("."))
.settings(commonSettings)
.settings(
name := "t99-analytics",
releaseNextVersion := { ver =>
Version(ver).map(_.bumpMinor.string).getOrElse("Error")
},
assemblyJarName in assembly := "t99.jar",
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-lambda-java-events" % "2.2.5",
"com.amazonaws" % "aws-lambda-java-core" % "1.2.0",
"com.github.j5ik2o" %% "reactive-aws-rekognition-core" % versions.reactiveAwsClient,
"com.github.j5ik2o" %% "reactive-aws-dynamodb-core" % versions.reactiveAwsClient,
"com.lihaoyi" %% "upickle" % "0.7.1",
"com.amazonaws" % "aws-xray-recorder-sdk-core" % versions.xray,
"com.amazonaws" % "aws-xray-recorder-sdk-aws-sdk-v2" % versions.xray,
"com.amazonaws" % "aws-xray-recorder-sdk-apache-http" % versions.xray,
"com.amazonaws" % "aws-xray-recorder-sdk-aws-sdk-v2-instrumentor" % versions.xray,
"com.amazonaws" % "aws-lambda-java-log4j2" % "1.1.0",
"org.scalatest" %% "scalatest" % "3.0.6" % Test,
"org.mockito" % "mockito-core" % "2.24.5" % Test
),
assemblyMergeStrategy in assembly := {
case PathList("com", "amazonaws", "xray", "sdk.properties") => MergeStrategy.first
case PathList(ps @ _*) if ps.last == "io.netty.versions.properties" => MergeStrategy.discard
case PathList(ps @ _*) if ps.last == "Log4j2Plugins.dat" => Log4j2MergeStrategy.plugincache
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
)
lazy val integrationTest = (project in file("integrationTest"))
.dependsOn(app % "test->test;compile->compile")
.settings(commonSettings)