Skip to content

Commit 64799f6

Browse files
Cleanup Release Process (#310)
* Cleanup Release Process * remove sbt-release plugin usage
1 parent ee5ad29 commit 64799f6

File tree

4 files changed

+2
-52
lines changed

4 files changed

+2
-52
lines changed

README.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -496,28 +496,7 @@ You can disable this check with the `DISABLE_FAIL_FAST_ON_SCALA_TYPE_RESOLUTION_
496496

497497
## Release
498498

499-
Create SBT file at ~/.sbt/1.0/sonatype.sbt with the following content:
500-
501-
```bash
502-
credentials += Credentials("Sonatype Nexus Repository Manager",
503-
"s01.oss.sonatype.org",
504-
"<access token: user name>",
505-
"<access token: password>")
506-
```
507-
508-
replace values with your access token user name and password.
509-
510-
Release new version:
511-
512-
```bash
513-
sh release.sh
514-
```
515-
516-
Increment to next SNAPSHOT version and push to Git server:
517-
518-
```bash
519-
RELEASE_PUBLISH=true sbt "; release with-defaults"
520-
```
499+
Add new Git Tag and push to remote. Then watch GitHub Release Pipeline which publishes new artifacts to Sonatype.
521500

522501
## License
523502

build.sbt

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import sbtrelease.ReleaseStateTransformations.*
2-
31
Global / onChangedBuildSource := ReloadOnSourceChanges
42
Global / excludeLintKeys := Set(crossScalaVersions)
53

@@ -89,27 +87,7 @@ lazy val commonSettings = Seq(
8987
} else {
9088
Nil
9189
}
92-
},
93-
releaseProcess := Seq.empty[ReleaseStep],
94-
releaseProcess ++= (if (sys.env.contains("RELEASE_VERSION_BUMP"))
95-
Seq[ReleaseStep](
96-
checkSnapshotDependencies,
97-
inquireVersions,
98-
setReleaseVersion,
99-
commitReleaseVersion,
100-
tagRelease
101-
// releaseStepCommandAndRemaining("+publishSigned"),
102-
// releaseStepCommand("sonatypeBundleRelease")
103-
)
104-
else Seq.empty[ReleaseStep]),
105-
releaseProcess ++= (if (sys.env.contains("RELEASE_PUBLISH"))
106-
Seq[ReleaseStep](
107-
inquireVersions,
108-
setNextVersion,
109-
commitNextVersion,
110-
pushChanges
111-
)
112-
else Seq.empty[ReleaseStep])
90+
}
11391
)
11492

11593
lazy val `scala-api-common` = (project in file("modules/flink-common-api"))
@@ -185,8 +163,6 @@ lazy val `examples` = (project in file("modules/examples"))
185163
crossScalaVersions := Seq(rootScalaVersion),
186164
Test / fork := true,
187165
publish / skip := true,
188-
// Release process for the `examples` is not needed
189-
releaseProcess := Seq.empty[ReleaseStep],
190166
libraryDependencies ++= Seq(
191167
"org.apache.flink" % "flink-runtime-web" % flinkVersion1 % Provided,
192168
"org.apache.flink" % "flink-clients" % flinkVersion1 % Provided,

project/plugins.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")
22
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.8.0")
3-
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
43
addSbtPlugin("com.github.sbt" % "sbt-protobuf" % "0.8.3")
54
addSbtPlugin("io.shiftleft" % "sbt-ci-release-early" % "2.1.11")

release.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)