Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/1813#discussion_r16204110
--- Diff: project/SparkBuild.scala ---
@@ -276,6 +289,35 @@ object Assembly {
}
+object CoreAssembly {
+ import sbtassembly.Plugin._
+ import AssemblyKeys._
+
+ lazy val settings = assemblySettings ++ Seq(
+ publishArtifact in (Compile, packageBin) := false,
+ test in assembly := {},
+ jarName in assembly <<= (name, scalaVersion, version) map {
+ _ + "_" + _ + "-" + _ + "-assembly.jar"
+ },
+ excludedJars in assembly := {
+ val cp = (fullClasspath in assembly).value
+ cp filter {!_.data.getName.startsWith("guava")}
+ },
+ mergeStrategy in assembly := {
+ case PathList("com", "google", "common", xs @ _*) =>
+ if (xs.size == 2 && xs(0) == "base" &&
xs(1).startsWith("Optional")) {
--- End diff --
Can't you pattern-match on "base" above as well?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]