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 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