This repository has been archived by the owner on Feb 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 288
/
build.sbt
61 lines (54 loc) · 2.26 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
name := "tinderbox"
version := "1.1-SNAPSHOT"
val javacvVersion = "0.9"
val javacppVersion = "0.9"
// Some dependencies like `javacpp` are packaged with maven-plugin packaging
classpathTypes += "maven-plugin"
// Determine current platform
val platform = {
// Determine platform name using code similar to javacpp
// com.googlecode.javacpp.Loader.java line 60-84
val jvmName = System.getProperty("java.vm.name").toLowerCase
var osName = System.getProperty("os.name").toLowerCase
var osArch = System.getProperty("os.arch").toLowerCase
if (jvmName.startsWith("dalvik") && osName.startsWith("linux")) {
osName = "android"
} else if (jvmName.startsWith("robovm") && osName.startsWith("darwin")) {
osName = "ios"
osArch = "arm"
} else if (osName.startsWith("mac os x")) {
osName = "macosx"
} else {
val spaceIndex = osName.indexOf(' ')
if (spaceIndex > 0) {
osName = osName.substring(0, spaceIndex)
}
}
if (osArch.equals("i386") || osArch.equals("i486") || osArch.equals("i586") || osArch.equals("i686")) {
osArch = "x86"
} else if (osArch.equals("amd64") || osArch.equals("x86-64") || osArch.equals("x64")) {
osArch = "x86_64"
} else if (osArch.startsWith("arm")) {
osArch = "arm"
}
val platformName = osName + "-" + osArch
println("platform: " + platformName)
platformName
}
libraryDependencies ++= Seq(
jdbc,
anorm,
cache,
"edu.stanford.nlp" % "stanford-corenlp" % "3.3.1",
"edu.stanford.nlp" % "stanford-corenlp" % "3.3.1" classifier "models",
"org.mapdb" % "mapdb" % "1.0.8",
"com.cloudphysics" %% "jerkson" % "0.6.3",
"com.fasterxml.jackson.module" % "jackson-module-scala_2.10" % "2.5.3",
"org.fusesource.jansi" % "jansi" % "1.11",
"org.apache.spark" %% "spark-core" % "1.1.0",
"com.typesafe.akka" %% "akka-actor" % "2.2.3",
"com.typesafe.akka" %% "akka-slf4j" % "2.2.3",
"org.imgscalr" % "imgscalr-lib" % "4.2",
"net.sourceforge.parallelcolt" % "parallelcolt" % "0.10.0"
)
play.Project.playScalaSettings