-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
40 lines (34 loc) · 1.03 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
import sbt._
resolvers += "jitpack" at "https://jitpack.io"
/*
* Dependencies
*/
val spark = "org.apache.spark" %% "spark-core" % "1.5.1" % "compile"
val utils = "com.github.WikiPlag" % "wikiplag_utils" % "-SNAPSHOT"
/*
* Test-Dependencies
*/
val testDependencies = Seq(
"org.slf4j" % "slf4j-simple" % "1.7.21" % "test",
"junit" % "junit" % "4.11" % "test",
"org.scalatest" %% "scalatest" % "2.2.6" % "test"
)
val meta = """META.INF(.)*""".r
assemblyMergeStrategy in assembly := {
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".html" => MergeStrategy.first
case n if n.startsWith("reference.conf") => MergeStrategy.concat
case n if n.endsWith(".conf") => MergeStrategy.concat
case meta(_) => MergeStrategy.discard
case x => MergeStrategy.first
}
/*
* Settings
*/
organization := "HTW Berlin"
name := "WikiPlagAnalyzer"
version := "0.0.3"
scalaVersion := "2.10.4"
libraryDependencies ++= testDependencies
libraryDependencies += spark
libraryDependencies += utils