forked from nzhiltsov/Anduin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
65 lines (43 loc) · 2.06 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
import AssemblyKeys._
name := "anduin"
version := "0.3.1"
organization := "ru.ksu.niimm.cll"
scalaVersion := "2.9.2"
resolvers += "Concurrent Maven Repo" at "http://conjars.org/repo"
resolvers ++= Seq(
"snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
"releases" at "http://oss.sonatype.org/content/repositories/releases",
"Twitter Maven" at "http://maven.twttr.com",
"Twitter SVN Maven" at "https://svn.twitter.biz/maven-public",
"Clojars Repository" at "http://clojars.org/repo"
)
libraryDependencies += "com.twitter" % "scalding_2.9.2" % "0.8.1" withSources()
libraryDependencies += "com.twitter" % "scalding-commons_2.9.2" % "0.0.7"
libraryDependencies += "org.scala-tools.testing" % "specs_2.9.2" % "1.6.9" % "test"
libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % "test"
libraryDependencies += "junit" % "junit" % "4.8" % "test"
libraryDependencies += "net.sf.jopt-simple" % "jopt-simple" % "4.3"
libraryDependencies += "org.apache.commons" % "commons-compress" % "1.4.1"
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.1"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.0.9"
libraryDependencies += "org.jsoup" % "jsoup" % "1.7.2"
parallelExecution in Test := false
seq(assemblySettings: _*)
mainClass in (Compile, run) := Some("com.twitter.scalding.Tool")
// Uncomment if you don't want to run all the tests before building assembly
// test in assembly := {}
// Janino includes a broken signature, and is not needed:
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")
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 x => old(x)
}
}