-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
51 lines (45 loc) · 2.16 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
39
40
41
42
43
44
45
46
47
48
49
50
51
organization := "gmspacagna"
name := "wordpress-workshop"
version := "0.1.0-SNAPSHOT"
scalaVersion := "2.10.6"
libraryDependencies ++= Seq(
"org.scala-lang" % "scalap" % "2.10.4" withSources() withJavadoc(),
"org.scala-lang" % "scala-compiler" % "2.10.4" withSources() withJavadoc(),
"org.apache.spark" % "spark-core_2.10" % "1.5.1" withSources() withJavadoc(),
"org.apache.spark" % "spark-sql_2.10" % "1.5.1" withSources() withJavadoc(),
"org.apache.spark" % "spark-mllib_2.10" % "1.5.1" withSources() withJavadoc(),
"org.scalaz" %% "scalaz-core" % "7.0.6" withSources() withJavadoc()
// "com.github.scala-incubator.io" %% "scala-io-file" % "0.4.2" withSources() withJavadoc(),
//"joda-time" % "joda-time" % "2.6" withSources() withJavadoc(),
//"org.joda" % "joda-convert" % "1.2" withSources() withJavadoc()
// "org.rogach" %% "scallop" % "0.9.5" withSources() withJavadoc(),
// "org.specs2" %% "specs2-core" % "2.4.9-scalaz-7.0.6" % "test" withSources() withJavadoc(),
// "org.specs2" %% "specs2-scalacheck" % "2.4.9-scalaz-7.0.6" % "test" withSources() withJavadoc()
)
resolvers ++= Seq(
//"mvnrepository" at "https://repository.cloudera.com/artifactory/cloudera-repos/",
"Maven Central" at "https://repo1.maven.org/maven2/"
)
mergeStrategy in assembly <<= (mergeStrategy in assembly)((old) => {
case x if Assembly.isConfigFile(x) =>
MergeStrategy.concat
case PathList(ps@_*) if Assembly.isReadme(ps.last) || Assembly.isLicenseFile(ps.last) =>
MergeStrategy.rename
case PathList("META-INF", xs@_*) =>
(xs map {
_.toLowerCase
}) match {
case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) =>
MergeStrategy.discard
case ps@(x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") =>
MergeStrategy.discard
case "plexus" :: xs =>
MergeStrategy.discard
case "services" :: xs =>
MergeStrategy.filterDistinctLines
case ("spring.schemas" :: Nil) | ("spring.handlers" :: Nil) =>
MergeStrategy.filterDistinctLines
case _ => MergeStrategy.first // Changed deduplicate to first
}
case PathList(_*) => MergeStrategy.first // added this line
})