-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (52 loc) · 3.02 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
val akkaVersion = "2.6.10"
val akkaHttpVersion = "10.2.0"
assemblyMergeStrategy in assembly := {
case PathList("jackson-annotations-2.10.3.jar", xs @ _*) => MergeStrategy.last
case PathList("jackson-core-2.10.3.jar", xs @ _*) => MergeStrategy.last
case PathList("jackson-databind-2.10.3.jar", xs @ _*) => MergeStrategy.last
case PathList("jackson-dataformat-cbor-2.10.3.jar", xs @ _*) => MergeStrategy.last
case PathList("jackson-datatype-jdk8-2.10.3.jar", xs @ _*) => MergeStrategy.last
case PathList("jackson-datatype-jsr310-2.10.3.jar", xs @ _*) => MergeStrategy.last
case PathList("jackson-module-parameter-names-2.10.3.jar", xs @ _*) => MergeStrategy.last
case PathList("jackson-module-paranamer-2.10.3.jar", xs @ _*) => MergeStrategy.last
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case PathList("reference.conf") => MergeStrategy.concat
case _ => MergeStrategy.first
}
mainClass in assembly := Some("io.adobe.prometheus.App")
val `LinearRegression` = project
.in(file("."))
.settings(
organization := "com.adobe",
version := "1.0",
scalaVersion := "2.12.11",
scalacOptions in Compile ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlog-reflective-calls", "-Xlint"),
javacOptions in Compile ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"),
javaOptions in run ++= Seq("-Xms128m", "-Xmx1024m"),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-cluster-typed" % akkaVersion,
"com.typesafe.akka" %% "akka-serialization-jackson" % akkaVersion,
"com.typesafe.akka" %% "akka-multi-node-testkit" % akkaVersion % Test,
"com.typesafe.akka" %% "akka-actor-testkit-typed" % akkaVersion % Test,
"org.scalatest" %% "scalatest" % "3.0.8" % Test,
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.junit" % "junit-bom" % "5.4.0",
"org.junit.jupiter" % "junit-jupiter-engine" % "5.4.0",
"org.apache.spark" %% "spark-sql" % "3.0.1",
"org.apache.spark" %% "spark-mllib" % "3.0.1",
"org.scala-lang" % "scala-reflect" % "2.12.11" % "provided",
"org.scalanlp" % "breeze_2.12" % "1.1",
"org.scalanlp" % "breeze-viz_2.12" % "1.1",
"org.xerial.snappy" % "snappy-java" % "1.1.8",
"com.google.protobuf" % "protobuf-java" % "3.13.0",
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion),
fork in run := true,
Global / cancelable := false, // ctrl-c
// disable parallel tests
parallelExecution in Test := false,
// show full stack traces and test case durations
testOptions in Test += Tests.Argument("-oDF"),
logBuffered in Test := false,
licenses := Seq(("CC0", url("https://creativecommons.org/publicdomain/zero/1.0"))))