This repository has been archived by the owner on Oct 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.sbt
72 lines (50 loc) · 1.98 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
name := "spark-neighbors"
organization := "com.github.karlhigley"
description := "Spark-based approximate nearest neighbor search using locality-sensitive hashing"
version := "0.2.2"
scalaVersion := "2.10.5"
spName := "karlhigley/spark-neighbors"
sparkVersion := "1.6.0"
sparkComponents := Seq("core", "mllib")
val testSparkVersion = settingKey[String]("The version of Spark to test against.")
testSparkVersion := sys.props.get("spark.testVersion").getOrElse(sparkVersion.value)
libraryDependencies ++= Seq(
"org.scalanlp" %% "breeze" % "0.12",
"org.scalatest" %% "scalatest" % "2.2.4" % "test"
)
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % testSparkVersion.value % "test" force(),
"org.apache.spark" %% "spark-mllib" % testSparkVersion.value % "test" force(),
"org.scala-lang" % "scala-library" % scalaVersion.value % "compile"
)
// This is necessary because of how we explicitly specify Spark dependencies
// for tests rather than using the sbt-spark-package plugin to provide them.
spIgnoreProvided := true
parallelExecution in Test := false
publishArtifact in Test := false
publishMavenStyle := true
spIncludeMaven := true
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
credentials += Credentials(Path.userHome / ".ivy2" / ".spark-package-credentials")
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomExtra := (
<url>https://github.com/karlhigley/spark-neighbors</url>
<scm>
<url>[email protected]:karlhigley/spark-neighbors.git</url>
<connection>scm:git:[email protected]:karlhigley/spark-neighbors.git</connection>
</scm>
<developers>
<developer>
<id>karlhigley</id>
<name>Karl Higley</name>
<url>https://github.com/karlhigley</url>
</developer>
</developers>)
pomIncludeRepository := { _ => false }
useGpg := true