-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
51 lines (42 loc) · 1.97 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
name := "seqspark"
version := "1.0"
organization := "org.dizhang"
scalaVersion := "2.11.12"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.7.5" % "provided",
"org.slf4j" % "slf4j-log4j12" % "1.7.5" % "provided",
"org.apache.spark" % "spark-core_2.11" % "2.1.0" % "provided",
"org.apache.spark" % "spark-sql_2.11" % "2.1.0" % "provided",
"org.apache.spark" % "spark-mllib_2.11" % "2.1.0" % "provided",
"com.typesafe" % "config" % "1.2.1",
"org.scalanlp" %% "breeze" % "0.13" % "provided",
"org.scalanlp" %% "breeze-natives" % "0.13" % "provided",
"org.scalatest" % "scalatest_2.11" % "2.2.4" % "test",
//"net.java.dev.jna" % "jna" % "4.2.2",
//"com.chuusai" %% "shapeless" % "2.3.3"
"org.scalaz" %% "scalaz-core" % "7.2.4"
)
//resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
resolvers += "Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/"
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
assemblyMergeStrategy in assembly := {
case "reference.conf" => MergeStrategy.concat
case "pom.xml" => MergeStrategy.discard
case "pom.properties" => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
fork in Test := true
parallelExecution in Test := false
//testOptions in Test := Seq(Tests.Filter(s => ! s.endsWith("SingleStudySpec")))
javaOptions ++= Seq("-Xms512M", "-Xmx2048M", "-XX:MaxPermSize=2048M", "-XX:+CMSClassUnloadingEnabled")
assemblyJarName in assembly := "SeqSpark.jar"
test in assembly := {}
mainClass in (Compile, run) := Some("org.dizhang.seqspark.SingleStudy")
mainClass in (Compile, packageBin) := Some("org.dizhang.seqspark.SingleStudy")