Skip to content

Instantly share code, notes, and snippets.

@DSwift510
Created March 2, 2021 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DSwift510/2fae487a0858d721b927aff225514063 to your computer and use it in GitHub Desktop.
Save DSwift510/2fae487a0858d721b927aff225514063 to your computer and use it in GitHub Desktop.
build.sbt
scalaVersion := "2.12.10"
scalacOptions += "-Ylog-classpath"
Compile / PB.targets := Seq(
scalapb.gen() -> (Compile / sourceManaged).value / "scalapb"
)
assemblyShadeRules in assembly := Seq(
ShadeRule.rename("com.google.protobuf.**" -> "shadeproto.@1").inAll,
ShadeRule.rename("scala.collection.compat.**" -> "shadecompat.@1").inAll
)
// (optional) If you need scalapb/scalapb.proto or anything from
// google/protobuf/*.proto
libraryDependencies ++= Seq(
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf",
"com.thesamet.scalapb" %% "sparksql-scalapb" % "0.11.0-RC1"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment