-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
59 lines (46 loc) · 2.43 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
name := "bigkube"
version := "0.1"
scalaVersion := "2.11.12"
val sparkVersion = "2.4.0"
val circeVersion = "0.11.0"
lazy val IntegrationTest = config("it") extend Test
lazy val root = Project(id = "root", base = file("."))
.configs(IntegrationTest)
.settings(Defaults.itSettings: _*)
resolvers += "Confluent Maven Repository" at "https://packages.confluent.io/maven/"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
"org.apache.spark" %% "spark-streaming" % sparkVersion % "provided",
"org.apache.spark" %% "spark-hive" % sparkVersion % "provided",
"com.facebook.presto" % "presto-jdbc" % "0.151" % Test,
"com.microsoft.azure" % "azure-sqldb-spark" % "1.0.2",
"com.microsoft.sqlserver" % "mssql-jdbc" % "7.2.0.jre8",
"com.typesafe.slick" %% "slick" % "3.3.0",
"com.typesafe.slick" %% "slick-hikaricp" % "3.3.0",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
"com.typesafe" % "config" % "1.0.2",
"org.scalatest" %% "scalatest" % "3.2.0-SNAP10" % Test,
"org.scalacheck" %% "scalacheck" % "1.14.0" % Test,
"org.apache.logging.log4j" % "log4j-core" % "2.7",
"org.apache.logging.log4j" % "log4j-api" % "2.7",
"io.fabric8" % "kubernetes-client" % "4.2.2" % Test,
"org.apache.spark" %% "spark-streaming-kafka-0-10" % sparkVersion exclude ("org.apache.kafka","kafka"),
"org.apache.kafka" %% "kafka" % "2.1.0",
"com.sksamuel.avro4s" %% "avro4s-core" % "2.0.2",
"com.github.azakordonets" % "fabricator_2.11" % "2.1.5" % Test
)
assemblyMergeStrategy in assembly := {
case PathList("application.conf") => MergeStrategy.concat
case PathList("git.properties") => MergeStrategy.first
case PathList("org", "apache", "spark", "unused", "UnusedStubClass.class") => MergeStrategy.first
case PathList("org", "apache", "commons", "beanutils", _*) => MergeStrategy.first
case PathList("org", "apache", "commons", "collections", _*) => MergeStrategy.first
case PathList("org", "apache", "commons", "lang", _*) => MergeStrategy.first
case PathList("org", "aopalliance", _*) => MergeStrategy.first
case PathList("javax", "inject", _*) => MergeStrategy.first
case PathList("org", "apache", "hadoop", "yarn", _*) => MergeStrategy.first
case PathList("io", "sundr", _*) => MergeStrategy.first
case PathList("org", "bouncycastle", _*) => MergeStrategy.first
case x => (assemblyMergeStrategy in assembly).value(x)
}