-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
50 lines (43 loc) · 1.93 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
name := "diane"
organization := "com.brayanjules"
// Dependencies
crossScalaVersions := Seq("2.12.17", "2.13.10")
val sparkVersion = "3.3.1"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
"org.apache.spark" %% "spark-hive" % sparkVersion % "provided",
"io.delta" %% "delta-core" % "2.1.0" % "provided",
"org.scalatest" %% "scalatest" % "3.2.15" % "test",
"com.lihaoyi" %% "os-lib" % "0.7.1" % "test"
)
Test / fork := true
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oD")
// Release Process
import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(
GitHubHosting("brayanjuls", "diane", "Brayan Jules", "[email protected]")
)
licenses += ("MIT" -> url("http://opensource.org/licenses/MIT"))
publishMavenStyle := true
sonatypeProfileName := "com.brayanjules"
sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
publishTo := sonatypePublishToBundle.value
import ReleaseTransformations._
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // check that there are no SNAPSHOT dependencies
inquireVersions, // ask user to enter the current and next version
runClean, // clean
runTest, // run tests
setReleaseVersion, // set release version in version.sbt
commitReleaseVersion, // commit the release version
tagRelease, // create git tag
releaseStepCommandAndRemaining(
"+publishSigned"
), // run +publishSigned command to sonatype stage release
setNextVersion, // set next version in version.sbt
commitNextVersion, // commit next version
releaseStepCommand("sonatypeBundleRelease"), // run sonatypeRelease and publish to maven central
pushChanges // push changes to git
)