-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
34 lines (25 loc) · 906 Bytes
/
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
name := "elastic-search-monitor"
organization := "com.gu"
description:= "Monitors your elastic search cluster and reports metrics to cloudwatch"
version := "1.0"
scalaVersion := "3.3.4"
val awsSdkVersion = "1.12.780"
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8"
)
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-lambda-java-core" % "1.2.3",
"com.squareup.okhttp3" % "okhttp" % "4.12.0",
"com.amazonaws" % "aws-java-sdk-cloudwatch" % awsSdkVersion,
"com.amazonaws" % "aws-java-sdk-ec2" % awsSdkVersion,
"com.fasterxml.jackson.core" % "jackson-databind" % "2.18.2",
)
assembly / assemblyMergeStrategy := {
case PathList("META-INF", _*) => MergeStrategy.discard
case x if x.endsWith("module-info.class") => MergeStrategy.first
case y =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(y)
}
assemblyJarName := s"${name.value}.jar"