-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
43 lines (29 loc) · 1.17 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
import NativePackagerHelper._
name := "exercises"
version := "0.1"
organization := "io.elegans"
scalaVersion := "2.11.8"
resolvers ++= Seq("Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
Resolver.bintrayRepo("hseeberger", "maven"))
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "2.0.1" % "provided",
"org.apache.spark" %% "spark-mllib" % "2.0.1" % "provided",
"org.elasticsearch" % "elasticsearch-spark_2.11" % "2.4.0",
"edu.stanford.nlp" % "stanford-corenlp" % "3.6.0",
"edu.stanford.nlp" % "stanford-corenlp" % "3.6.0" classifier "models",
"com.github.scopt" %% "scopt" % "3.5.0"
)
SparkSubmit.settings
enablePlugins(JavaServerAppPackaging)
// Assembly settings
mainClass in Compile := Some("io.elegans.exercises.TokenizeSentences")
mainClass in assembly := Some("io.elegans.exercises.TokenizeSentences")
mappings in Universal ++= {
// copy configuration files to config directory
directory("scripts")
}
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
licenses := Seq(("GPLv3", url("https://opensource.org/licenses/MIT")))