This repository has been archived by the owner on Oct 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
38 lines (32 loc) · 1.69 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
name := "scetta"
version := "0.0.1"
scalaVersion := "2.11.8"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "2.0.1" % "provided",
"org.json4s" %% "json4s-core" % "3.2.11" % "provided",
"org.json4s" %% "json4s-jackson" % "3.2.11" % "provided",
"org.apache.jena" % "jena-tdb" % "3.1.0"
)
mainClass in assembly := some("la.dp.scetta.SparkMain")
assemblyJarName := "cdl-mapping-spark.jar"
val meta = """META.INF(.)*""".r
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case PathList("META-INF", "services", xs @ _*) => MergeStrategy.filterDistinctLines
case PathList("META-INF", xs @ _*) => MergeStrategy.first
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".xml" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".ttl" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".DSA" => MergeStrategy.discard
case PathList(ps @ _*) if ps.last endsWith ".RSA" => MergeStrategy.discard
case PathList(ps @ _*) if ps.last endsWith ".SF" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".html" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".properties" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".rules" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".rdf" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".ex" => MergeStrategy.first
case n if n.startsWith("reference.conf") => MergeStrategy.concat
case n if n.endsWith(".conf") => MergeStrategy.concat
case meta(_) => MergeStrategy.discard
case x => MergeStrategy.first
}