blob: c336f8288eb79ecfa5422b4392cd6023fbdc44dc [file] [log] [blame]
import AssemblyKeys._
name := "predictionio-process-itemsim-algorithms-hadoop-scalding"
packageOptions += Package.ManifestAttributes(java.util.jar.Attributes.Name.MAIN_CLASS -> "com.twitter.scalding.Tool")
parallelExecution in Test := false
libraryDependencies ++= Seq(
"org.apache.hadoop" % "hadoop-core" % "1.0.4",
"com.twitter" %% "scalding-core" % "0.8.6")
resolvers ++= Seq("Concurrent Maven Repo" at "http://conjars.org/repo")
assemblySettings
test in assembly := {}
assembleArtifact in packageScala := true
excludedJars in assembly <<= (fullClasspath in assembly) map { cp =>
val excludes = Set(
"jsp-api-2.1-6.1.14.jar",
"jsp-2.1-6.1.14.jar",
"jasper-compiler-5.5.12.jar",
"janino-2.5.16.jar",
"minlog-1.2.jar",
"hadoop-core-1.0.4.jar")
cp filter { jar => excludes(jar.data.getName)}
}
// Some of these files have duplicates, let's ignore:
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case s if s.endsWith(".class") => MergeStrategy.last
case s if s.endsWith("project.clj") => MergeStrategy.concat
case s if s.endsWith(".html") => MergeStrategy.last
case s if s.endsWith(".properties") => MergeStrategy.last
case s if s.endsWith(".xml") => MergeStrategy.last
case x => old(x)
}
}