Skip to content

Commit 65adb00

Browse files
post release fixups
1 parent 1381749 commit 65adb00

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ jobs:
2121
with:
2222
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
2323
passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}
24-
- name: Build and publish maven artifacts
24+
- name: Check if snapshot version
25+
run: echo "IS_SNAPSHOT=$(sbt --no-colors -Dsbt.supershell=false 'show isSnapshot' | grep 'info' | tail -1 | awk '{print $2}')" >> $GITHUB_ENV
26+
- name: Build and publish release version to maven
27+
if: ${{ env.IS_SNAPSHOT == 'true' }}
28+
run: sbt "+clean; +publishSigned; sonatypeBundleRelease"
29+
- name: Build and publish snapshot version to maven
30+
if: ${{ env.IS_SNAPSHOT == 'false' }}
2531
run: sbt "+clean; +publishSigned"
2632
- name: Setup buildx builder
2733
uses: docker/setup-buildx-action@v3

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ For more refer to <https://issues.apache.org/jira/browse/FLINK-13414>.
99
```bash
1010
rm $FLINK_HOME/lib/flink-scala*.jar
1111

12-
wget https://central.sonatype.com/repository/maven-snapshots/pl/touk/flink-scala_2.13/1.1.3-SNAPSHOT/flink-scala_2.13-1.1.3-SNAPSHOT-assembly.jar -O $FLINK_HOME/lib/flink-scala_2.13-1.1.3-SNAPSHOT-assembly.jar
12+
wget https://repo1.maven.org/maven2/pl/touk/flink-scala_2.12/1.1.3/flink-scala_2.12-1.1.3-assembly.jar -O $FLINK_HOME/lib/flink-scala_2.12-1.1.3-assembly.jar
1313
```
1414

1515
## Using as a lib (probably only sufficient when child-first classloading is enabled on flink)
1616
```scala
17-
libraryDependencies += "pl.touk" %% "flink-scala" % "1.1.3-SNAPSHOT"
17+
libraryDependencies += "pl.touk" %% "flink-scala" % "1.1.3"
1818
```
1919

2020
## Prebuild flink images
2121
* we provide prebuild flink docker images for scala 2.12 and 2.13 on [Docker Hub](https://hub.docker.com/r/touk/flink)
2222

23-
## Publishing
23+
## Publishing (actually on manual github action)
2424
```
25-
sbt publishSigned sonatypeBundleRelease
25+
sbt "+publishSigned; sonatypeBundleRelease"
2626
```

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sbtassembly.MergeStrategy
22

33
name := "flink-scala"
4-
version := "1.1.3"
4+
version := "1.1.4-SNAPSHOT"
55

66
val scala212 = "2.12.20"
77
val scala213 = "2.13.16"
@@ -33,7 +33,7 @@ lazy val publishSettings = Seq(
3333
if (isSnapshot.value)
3434
Some("snapshots" at "https://central.sonatype.com/repository/maven-snapshots/")
3535
else {
36-
sonatypePublishToBundle.value //todo: full release not tested yet
36+
sonatypePublishToBundle.value
3737
}
3838
},
3939
Test / publishArtifact := false,

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.3.1")
2-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")
2+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
33
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

0 commit comments

Comments
 (0)