-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
85 lines (72 loc) · 3.19 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
73
74
75
76
77
78
79
80
81
82
83
84
name := """mte"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.10.4"
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "UTF8")
// enable improved (experimental) incremental compilation algorithm called "name hashing"
incOptions := incOptions.value.withNameHashing(true)
resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies ++= Seq(
// crosscutting concerns: logging, config, runtime...
"org.slf4j" % "slf4j-api" % "1.7.7",
"org.slf4j" % "jcl-over-slf4j" % "1.7.7", // redirect the apache http lib logging to slf4j
"org.slf4j" % "log4j-over-slf4j" % "1.7.7", // redirect the apache http lib logging to slf4j
"ch.qos.logback" % "logback-classic" % "1.1.2",
"com.kenshoo" %% "metrics-play" % "2.3.0_0.1.6",
"nl.grons" %% "metrics-scala" % "3.2.1_a2.3",
// WEB
"org.webjars" %% "webjars-play" % "2.3.0",
"org.webjars" % "angularjs" % "1.2.22",
"org.webjars" % "angular-ui-router" % "0.2.10-1",
"org.webjars" % "angular-ui-bootstrap" % "0.11.0-2",
"org.webjars" % "angular-moment" % "0.6.2-2",
"org.webjars" % "momentjs" % "2.8.1-1",
// nlp
"org.dbpedia.extraction" % "core" % "4.0-SNAPSHOT"
exclude("log4j", "log4j"),
"de.unihd.dbs" % "heideltime-standalone" % "1.7",
"edu.stanford.nlp" % "stanford-corenlp" % "3.3.1",
"de.uni-mannheim.dws" % "WikiParser" % "0.0.1-SNAPSHOT"
exclude("commons-logging","commons-logging")
exclude("edu.stanford.nlp", "stanford-corenlp")
exclude("log4j", "log4j"),
"ch.weisenburger" %% "mtner" % "1.0-SNAPSHOT"
exclude("edu.stanford.nlp", "stanford-corenlp"),
// SPARQL
"org.apache.jena" % "jena-arq" % "2.11.2"
exclude("log4j", "log4j")
exclude("org.slf4j", "slf4j-log4j12")
exclude("commons-logging", "commons-logging"),
// DATA
"org.reactivemongo" %% "play2-reactivemongo" % "0.10.5.0.akka23"
// exclude("org.apache.logging.log4j", "log4j-to-slf4j")
// exclude("org.apache.logging.log4j", "log4j-core")
// exclude("org.apache.logging.log4j", "log4j-api")
)
//
//dockerSettings
//
//
//// Make docker depend on the package task, which generates a jar file of the application code
//docker <<= docker.dependsOn(`dist` in(Compile, packageBin))
//
//// Tell docker at which path the jar file will be created
//jarFile in docker <<= (artifactPath in(Compile, packageBin)).toTask
//
//// Create a custom Dockerfile
//dockerfile in docker <<= (stageDir in docker, jarFile in docker, mainClass in Compile) map {
// (stageDir, jarFile, mainClass) => new Dockerfile {
// from("totokaka/arch-java")
// // Install scala
// run("pacman", "-S", "--noconfirm", "scala")
// // Add the generated jar file
// add(jarFile, file(jarFile.getName))(stageDir)
// // Run the jar file with scala library on the class path
// entryPoint("java", "-cp", s"/usr/share/scala/lib/scala-library.jar:${jarFile.getName}", mainClass.get)
// }
//}
//
//// Set a custom image name
//imageName in docker <<= (organization, name, version) map
// ((organization, name, version) => s"$organization/$name:v$version")