-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
31 lines (23 loc) · 1.31 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
name := "dbx-kafka-protobuf-example"
version := "0.0.1"
scalaVersion := "2.12.10"
val sparkVersion = "3.1.2"
val testcontainersScalaVersion = "0.39.12"
libraryDependencies += "org.apache.spark" %% "spark-core" % sparkVersion % "provided"
libraryDependencies += "org.apache.spark" %% "spark-sql" % sparkVersion % "provided"
libraryDependencies += "org.apache.spark" % "spark-sql-kafka-0-10_2.12" % sparkVersion % "provided"
libraryDependencies += "io.delta" %% "delta-core" % "1.0.0" % "provided"
libraryDependencies += "com.thesamet.scalapb" %% "sparksql-scalapb" % "0.11.0"
libraryDependencies += "com.typesafe" % "config" % "1.4.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.9" % Test
libraryDependencies += "com.dimafeng" %% "testcontainers-scala-scalatest" % testcontainersScalaVersion % Test
libraryDependencies += "com.dimafeng" %% "testcontainers-scala-kafka" % testcontainersScalaVersion % Test
// Hadoop contains an old protobuf runtime that is not binary compatible
// with 3.0.0. We shaded ours to prevent runtime issues.
ThisBuild / assemblyShadeRules := Seq(
ShadeRule.rename("com.google.protobuf.**" -> "shadeproto.@1").inAll,
ShadeRule.rename("scala.collection.compat.**" -> "scalacompat.@1").inAll
)
Compile / PB.targets := Seq(
scalapb.gen() -> (Compile / sourceManaged).value / "scalapb"
)