-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
72 lines (44 loc) · 2.04 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import AssemblyKeys._
name := "hbase-scalding"
organization := "StumbleUpon"
version := "0.1.0"
scalaVersion := "2.9.2"
resolvers += "Apache HBase" at "https://repository.apache.org/content/repositories/releases"
resolvers += "Sonatype OSS Repo" at "https://oss.sonatype.org/content/repositories/releases"
resolvers += "Concurrent Maven Repo" at "http://conjars.org/repo"
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "Twitter Maven Repo" at "http://maven.twttr.com"
resolvers += "Maven Repository" at "http://mvnrepository.com/artifact/"
resolvers += ("releases" at
"http://oss.sonatype.org/content/repositories/releases")
resolvers += ("snapshots" at
"http://oss.sonatype.org/content/repositories/snapshots")
resolvers += "Sonatype OSS Repo" at "https://oss.sonatype.org/content/groups/scala-tools"
mainClass := Some("com.twitter.scalding.Tool")
libraryDependencies+= "org.specs2" %% "specs2" % "1.11" % "test"
libraryDependencies+= "cascading" % "cascading-core" % "2.0.2"
libraryDependencies+= "cascading" % "cascading-local" % "2.0.2"
libraryDependencies+= "cascading" % "cascading-hadoop" % "2.0.2"
libraryDependencies+= "com.twitter" %% "scalding" % "0.7.3"
libraryDependencies+= "commons-lang" % "commons-lang" % "2.4"
libraryDependencies+= "io.netty" % "netty" % "[3.4.6.Final]"
libraryDependencies += "org.apache.hbase" % "hbase" % "0.94.0"
parallelExecution in Test := false
seq(assemblySettings: _*)
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case _ => MergeStrategy.last // leiningen build files
}
}
excludedFiles in assembly := { (bases: Seq[File]) =>
bases.filterNot(_.getAbsolutePath.contains("seshet")) flatMap { base =>
//Exclude all log4j.properties from other peoples jars
((base * "*").get collect {
case f if f.getName.toLowerCase == "log4j.properties" => f
}) ++
//Exclude the license and manifest from the exploded jars
((base / "META-INF" * "*").get collect {
case f => f
})
}
}