From c76044d692deb780d151e302e644403249a4fb20 Mon Sep 17 00:00:00 2001 From: Himanish Kushary Date: Mon, 19 Jul 2021 12:27:19 -0400 Subject: [PATCH 1/3] Update build.sbt and plugins.sbt with sbt-release plugin. Added version.sbt --- build.sbt | 23 ++++++++++++++++++++--- project/plugins.sbt | 3 ++- version.sbt | 1 + 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 version.sbt diff --git a/build.sbt b/build.sbt index 8e4c256ae..d9710231c 100644 --- a/build.sbt +++ b/build.sbt @@ -1,9 +1,11 @@ +import ReleaseTransformations._ + +parallelExecution in ThisBuild := false + name := "overwatch" organization := "com.databricks.labs" -version := "0.5.0.1" - scalaVersion := "2.12.12" scalacOptions ++= Seq("-Xmax-classfile-name", "78") @@ -63,4 +65,19 @@ assemblyExcludedJars in assembly := { f.data.getName.contains("delta-core") || f.data.getName.contains("com.amazonaws") } -} \ No newline at end of file +} + +releasePublishArtifactsAction := PgpKeys.publishSigned.value + +releaseProcess := Seq[ReleaseStep]( + checkSnapshotDependencies, + inquireVersions, + runClean, + runTest, + setReleaseVersion, + commitReleaseVersion, + tagRelease, + publishArtifacts, + setNextVersion, + commitNextVersion +) \ No newline at end of file diff --git a/project/plugins.sbt b/project/plugins.sbt index 365e527c0..60de06cf7 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -3,4 +3,5 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") addSbtPlugin("io.get-coursier" % "sbt-coursier" % "2.0.0-RC6-8") addSbtPlugin("com.github.sbt" % "sbt-jacoco" % "3.0.3") addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2") -addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3") \ No newline at end of file +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3") +addSbtPlugin("com.github.sbt" % "sbt-release" % "1.0.15") \ No newline at end of file diff --git a/version.sbt b/version.sbt new file mode 100644 index 000000000..6bc725cb4 --- /dev/null +++ b/version.sbt @@ -0,0 +1 @@ +version in ThisBuild := "0.5.2-SNAPSHOT" \ No newline at end of file From ac9cebedcc8c625a58da86bae949e4307ecbba95 Mon Sep 17 00:00:00 2001 From: Himanish Kushary Date: Mon, 19 Jul 2021 12:28:58 -0400 Subject: [PATCH 2/3] Setting version to 0.5.2 --- version.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.sbt b/version.sbt index 6bc725cb4..01120e350 100644 --- a/version.sbt +++ b/version.sbt @@ -1 +1 @@ -version in ThisBuild := "0.5.2-SNAPSHOT" \ No newline at end of file +ThisBuild / version := "0.5.2" From 0a0123d42dc602c34210ab75a9892aa7a679a995 Mon Sep 17 00:00:00 2001 From: Himanish Kushary Date: Mon, 19 Jul 2021 14:00:58 -0400 Subject: [PATCH 3/3] Added Github Actions Workflow for SBT --- .github/workflows/scala.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/scala.yml diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml new file mode 100644 index 000000000..00aabbfcd --- /dev/null +++ b/.github/workflows/scala.yml @@ -0,0 +1,20 @@ +name: Scala CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Run tests + run: sbt test