Created
March 2, 2021 12:23
-
-
Save DSwift510/2fae487a0858d721b927aff225514063 to your computer and use it in GitHub Desktop.
build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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