File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
23
23
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' }}
25
31
run : sbt "+clean; +publishSigned"
26
32
- name : Setup buildx builder
27
33
uses : docker/setup-buildx-action@v3
Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ For more refer to <https://issues.apache.org/jira/browse/FLINK-13414>.
9
9
``` bash
10
10
rm $FLINK_HOME /lib/flink-scala* .jar
11
11
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
13
13
```
14
14
15
15
## Using as a lib (probably only sufficient when child-first classloading is enabled on flink)
16
16
``` scala
17
- libraryDependencies += " pl.touk" %% " flink-scala" % " 1.1.3-SNAPSHOT "
17
+ libraryDependencies += " pl.touk" %% " flink-scala" % " 1.1.3"
18
18
```
19
19
20
20
## Prebuild flink images
21
21
* we provide prebuild flink docker images for scala 2.12 and 2.13 on [ Docker Hub] ( https://hub.docker.com/r/touk/flink )
22
22
23
- ## Publishing
23
+ ## Publishing (actually on manual github action)
24
24
```
25
- sbt publishSigned sonatypeBundleRelease
25
+ sbt "+ publishSigned; sonatypeBundleRelease"
26
26
```
Original file line number Diff line number Diff line change 1
1
import sbtassembly .MergeStrategy
2
2
3
3
name := " flink-scala"
4
- version := " 1.1.3 "
4
+ version := " 1.1.4-SNAPSHOT "
5
5
6
6
val scala212 = " 2.12.20"
7
7
val scala213 = " 2.13.16"
@@ -33,7 +33,7 @@ lazy val publishSettings = Seq(
33
33
if (isSnapshot.value)
34
34
Some (" snapshots" at " https://central.sonatype.com/repository/maven-snapshots/" )
35
35
else {
36
- sonatypePublishToBundle.value // todo: full release not tested yet
36
+ sonatypePublishToBundle.value
37
37
}
38
38
},
39
39
Test / publishArtifact := false ,
Original file line number Diff line number Diff line change 1
1
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 " )
3
3
addSbtPlugin(" com.github.sbt" % " sbt-pgp" % " 2.2.1" )
You can’t perform that action at this time.
0 commit comments