forked from Klarrio/open-stream-processing-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
28 lines (22 loc) · 761 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
import sbt.Keys.javaOptions
name := "metrics-exporter"
version := "3.0"
scalaVersion := "2.11.8"
val extJvmOpts = Seq(
"-Xmx6g",
"-Xms6g"
)
libraryDependencies ++= Dependencies.rootDependencies
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case _ => MergeStrategy.first
}
mainClass in assembly := Some("benchmark.metrics.exporter.ExporterMain")
mainClass in(Compile, run) := Some("benchmark.metrics.exporter.ExporterMain")
// JVM options
javaOptions in Universal ++= extJvmOpts.map(opt => s"-J$opt")
javaOptions in Test ++= extJvmOpts
// Docker configs
javaOptions in Docker ++= extJvmOpts.map(opt => s"-J$opt")
packageName in Docker := "metrics-exporter"
enablePlugins(JavaAppPackaging)