From b7a159670ebd899cb4f90d24b1345f1c7d6b28af Mon Sep 17 00:00:00 2001 From: alexey <117519424+novakov-alexey@users.noreply.github.com> Date: Fri, 17 Oct 2025 11:01:47 +0300 Subject: [PATCH 1/2] Cleanup Release Process --- README.md | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/README.md b/README.md index 64819c7..3d75c23 100644 --- a/README.md +++ b/README.md @@ -496,28 +496,7 @@ You can disable this check with the `DISABLE_FAIL_FAST_ON_SCALA_TYPE_RESOLUTION_ ## Release -Create SBT file at ~/.sbt/1.0/sonatype.sbt with the following content: - -```bash -credentials += Credentials("Sonatype Nexus Repository Manager", - "s01.oss.sonatype.org", - "", - "") -``` - -replace values with your access token user name and password. - -Release new version: - -```bash -sh release.sh -``` - -Increment to next SNAPSHOT version and push to Git server: - -```bash -RELEASE_PUBLISH=true sbt "; release with-defaults" -``` +Add new Git Tag and push to remote. Then watch GitHub Release Pipeline which publishes new artifacts to Sonatype. ## License From 7e927ec54aab574e33c26bd7020fa1cceea3f7cf Mon Sep 17 00:00:00 2001 From: Alexey Novakov Date: Sat, 18 Oct 2025 23:38:49 +0300 Subject: [PATCH 2/2] remove sbt-release plugin usage --- build.sbt | 26 +------------------------- project/plugins.sbt | 1 - release.sh | 4 ---- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 release.sh diff --git a/build.sbt b/build.sbt index ca63b2d..4b896ab 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,3 @@ -import sbtrelease.ReleaseStateTransformations.* - Global / onChangedBuildSource := ReloadOnSourceChanges Global / excludeLintKeys := Set(crossScalaVersions) @@ -89,27 +87,7 @@ lazy val commonSettings = Seq( } else { Nil } - }, - releaseProcess := Seq.empty[ReleaseStep], - releaseProcess ++= (if (sys.env.contains("RELEASE_VERSION_BUMP")) - Seq[ReleaseStep]( - checkSnapshotDependencies, - inquireVersions, - setReleaseVersion, - commitReleaseVersion, - tagRelease - // releaseStepCommandAndRemaining("+publishSigned"), - // releaseStepCommand("sonatypeBundleRelease") - ) - else Seq.empty[ReleaseStep]), - releaseProcess ++= (if (sys.env.contains("RELEASE_PUBLISH")) - Seq[ReleaseStep]( - inquireVersions, - setNextVersion, - commitNextVersion, - pushChanges - ) - else Seq.empty[ReleaseStep]) + } ) lazy val `scala-api-common` = (project in file("modules/flink-common-api")) @@ -185,8 +163,6 @@ lazy val `examples` = (project in file("modules/examples")) crossScalaVersions := Seq(rootScalaVersion), Test / fork := true, publish / skip := true, - // Release process for the `examples` is not needed - releaseProcess := Seq.empty[ReleaseStep], libraryDependencies ++= Seq( "org.apache.flink" % "flink-runtime-web" % flinkVersion1 % Provided, "org.apache.flink" % "flink-clients" % flinkVersion1 % Provided, diff --git a/project/plugins.sbt b/project/plugins.sbt index fff8baf..4211876 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,4 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5") addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.8.0") -addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0") addSbtPlugin("com.github.sbt" % "sbt-protobuf" % "0.8.3") addSbtPlugin("io.shiftleft" % "sbt-ci-release-early" % "2.1.11") diff --git a/release.sh b/release.sh deleted file mode 100644 index 1e91f34..0000000 --- a/release.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -ex -RELEASE_VERSION_BUMP=true sbt -Dgpg.passphrase=$GPG_PASSPHRASE test "; release with-defaults" -wait \ No newline at end of file