blob: cb0c93b501ef4805197b380488f5eb1ad58cd9c9 [file] [log] [blame]
import AssemblyKeys._
name := "predictionio-process-hadoop-scalding"
packageOptions += Package.ManifestAttributes(java.util.jar.Attributes.Name.MAIN_CLASS -> "com.twitter.scalding.Tool")
parallelExecution in Test := false
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)
}
}