-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
85 lines (67 loc) · 2.29 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
85
name := "spark-mapper"
version := "1.0.0"
organization := "com.github.log0ymxm"
homepage := Some(url("https://github.com/log0ymxm/spark-mapper"))
licenses += ("Apache", url("https://github.com/log0ymxm/spark-mapper/blob/master/LICENSE"))
scalaVersion := "2.11.8"
val sparkVersion = "2.1.0"
libraryDependencies ++= Seq(
"com.holdenkarau" %% "spark-testing-base" % "2.1.0_0.6.0" % "test",
"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-mllib" % sparkVersion,
"org.apache.spark" %% "spark-graphx" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion,
"org.scalanlp" %% "breeze" % "0.12",
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"org.specs2" %% "specs2-core" % "3.8.7" % "test"
)
javaOptions ++= Seq("-Xms512M", "-Xmx8192M", "-XX:MaxPermSize=2048M", "-XX:+CMSClassUnloadingEnabled")
parallelExecution in Test := false
fork in Test := true
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xfuture",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-value-discard"
)
scalacOptions in Test ++= Seq("-Yrangepos")
assemblyMergeStrategy in assembly := {
case PathList("javax", "inject", xs @ _*) => MergeStrategy.last
case PathList("org", "aopalliance", xs @ _ *) => MergeStrategy.last
case PathList("org", "apache", xs @ _ *) => MergeStrategy.last
case "overview.html" => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
scmInfo := Some(ScmInfo(url("https://github.com/log0ymxm/spark-mapper"), "[email protected]:log0ymxm/spark-mapper.git"))
publishMavenStyle := true
publishArtifact in Test := false
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomIncludeRepository := { _ => false }
pomExtra :=
<developers>
<developer>
<id>log0ymxm</id>
<name>Paul English</name>
<url>http://github.com/log0ymxm</url>
</developer>
</developers>