Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 1 addition & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"<access token: user name>",
"<access token: password>")
```

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

Expand Down
26 changes: 1 addition & 25 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import sbtrelease.ReleaseStateTransformations.*

Global / onChangedBuildSource := ReloadOnSourceChanges
Global / excludeLintKeys := Set(crossScalaVersions)

Expand Down Expand Up @@ -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"))
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -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")
4 changes: 0 additions & 4 deletions release.sh

This file was deleted.