forked from harsha2010/magellan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
86 lines (63 loc) · 2.5 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
86
name := "magellan"
version := "1.0.3-SNAPSHOT"
organization := "harsha2010"
scalaVersion := "2.10.4"
crossScalaVersions := Seq("2.10.5", "2.11.7")
sparkVersion := "1.4.1"
val testSparkVersion = settingKey[String]("The version of Spark to test against.")
testSparkVersion := sys.props.get("spark.testVersion").getOrElse(sparkVersion.value)
val testHadoopVersion = settingKey[String]("The version of Hadoop to test against.")
testHadoopVersion := sys.props.getOrElse("hadoop.testVersion", "2.2.0")
sparkComponents := Seq("core", "sql")
libraryDependencies ++= Seq(
"commons-io" % "commons-io" % "2.4",
"org.slf4j" % "slf4j-api" % "1.7.5" % "provided",
"com.esri.geometry" % "esri-geometry-api" % "1.2.1",
"org.scalatest" %% "scalatest" % "2.2.1" % "test"
)
libraryDependencies ++= Seq(
"org.apache.hadoop" % "hadoop-client" % testHadoopVersion.value % "test",
"org.apache.spark" %% "spark-core" % testSparkVersion.value % "test" exclude("org.apache.hadoop", "hadoop-client"),
"org.apache.spark" %% "spark-sql" % testSparkVersion.value % "test" exclude("org.apache.hadoop", "hadoop-client")
)
// 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
publishMavenStyle := true
spAppendScalaVersion := true
spIncludeMaven := true
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/harsha2010/magellan</url>
<licenses>
<license>
<name>Apache License, Verision 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:harsha2010/magellan.git</url>
<connection>scm:git:git@github.com:harsha2010/magellan.git</connection>
</scm>
<developers>
<developer>
<id>harsha2010</id>
<name>Ram Sriharsha</name>
<url>www.linkedin.com/in/harsha340</url>
</developer>
</developers>)
spName := "harsha2010/magellan"
parallelExecution in Test := false
ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := {
if (scalaBinaryVersion.value == "2.10") false
else true
}
credentials += Credentials(Path.userHome / ".ivy2" / ".sbtcredentials")
licenses += "Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0")