forked from databricks/spark-avro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
105 lines (78 loc) · 2.83 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name := "spark-avro"
organization := "com.databricks"
scalaVersion := "2.10.5"
crossScalaVersions := Seq("2.10.5", "2.11.7")
spName := "databricks/spark-avro"
sparkVersion := "1.4.1"
val testSparkVersion = settingKey[String]("The version of Spark to test against.")
testSparkVersion := sys.props.getOrElse("spark.testVersion", sparkVersion.value)
val testHadoopVersion = settingKey[String]("The version of Hadoop to test against.")
testHadoopVersion := sys.props.getOrElse("hadoop.testVersion", "2.2.0")
spAppendScalaVersion := true
spIncludeMaven := true
spIgnoreProvided := true
sparkComponents := Seq("sql")
libraryDependencies ++= Seq(
"org.apache.avro" % "avro" % "1.7.6" exclude("org.mortbay.jetty", "servlet-api"),
"org.apache.avro" % "avro-mapred" % "1.7.7" % "provided" classifier("hadoop2") exclude("org.mortbay.jetty", "servlet-api"),
"org.scalatest" %% "scalatest" % "2.2.1" % "test",
"commons-io" % "commons-io" % "2.4" % "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")
)
// Display full-length stacktraces from ScalaTest:
testOptions in Test += Tests.Argument("-oF")
ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := {
if (scalaBinaryVersion.value == "2.10") false
else true
}
EclipseKeys.eclipseOutput := Some("target/eclipse")
/********************
* Release settings *
********************/
publishMavenStyle := true
releaseCrossBuild := true
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
releasePublishArtifactsAction := PgpKeys.publishSigned.value
pomExtra :=
<url>https://github.com/databricks/spark-avro</url>
<scm>
<url>[email protected]:databricks/spark-avro.git</url>
<connection>scm:git:[email protected]:databricks/spark-avro.git</connection>
</scm>
<developers>
<developer>
<id>marmbrus</id>
<name>Michael Armbrust</name>
<url>https://github.com/marmbrus</url>
</developer>
<developer>
<id>JoshRosen</id>
<name>Josh Rosen</name>
<url>https://github.com/JoshRosen</url>
</developer>
<developer>
<id>vlyubin</id>
<name>Volodymyr Lyubinets</name>
<url>https://github.com/vlyubin</url>
</developer>
</developers>
bintrayReleaseOnPublish in ThisBuild := false
import ReleaseTransformations._
// Add publishing to spark packages as another step.
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
pushChanges,
releaseStepTask(spPublish)
)