forked from scalapb/sparksql-scalapb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
63 lines (52 loc) · 1.61 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
import ReleaseTransformations._
import scalapb.compiler.Version.scalapbVersion
organization in ThisBuild := "com.thesamet.scalapb"
val Scala210 = "2.10.7"
val Scala211 = "2.11.12"
val Scala212 = "2.12.7"
lazy val udtGenerator = project.in(file("sparksql-scalapb-gen"))
.settings(
name := "sparksql-scalapb-gen",
crossScalaVersions := Seq(Scala212, Scala210),
libraryDependencies ++= Seq(
"com.thesamet.scalapb" %% "protoc-bridge" % "0.7.3",
"com.thesamet.scalapb" %% "compilerplugin" % scalapbVersion
),
name := "sparksql-scalapb-gen",
PB.targets in Compile := Seq(),
)
lazy val sparkSqlScalaPB = project.in(file("sparksql-scalapb"))
.settings(
name := "sparksql-scalapb",
crossScalaVersions := Seq(Scala211, Scala212),
libraryDependencies ++= Seq(
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapbVersion,
"org.apache.spark" %% "spark-sql" % "2.4.0" % "provided"
)
)
publishTo in ThisBuild := sonatypePublishTo.value
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining(";+publishSigned"),
setNextVersion,
commitNextVersion,
pushChanges,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _), enableCrossBuild = true)
)
lazy val root =
project.in(file("."))
.settings(
publishArtifact := false,
publish := {},
publishLocal := {}
).aggregate(
sparkSqlScalaPB, udtGenerator
)