Skip to content

Commit

Permalink
add readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
novakov-alexey committed Aug 29, 2023
1 parent b53e524 commit 876d0b8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Example of stateful job using Apache Flink Scala API 2.12

To build a fat-jar run:

```bash
sbt assembly
```

in the result you will a JAR file at target/scala-2.12/scala-212-savepoint-assembly-0.1.0-SNAPSHOT.jar

Main class for the a Flink job: __com.github.novakovalexey.Main__

# Switch Flink version

In order to switch to Flink 1.15.x or later version, you need to remove second % (percent) sign in the SBT `libraryDependencies` for most of the Flink dependencies. For example:

```scala
"org.apache.flink" %% "flink-streaming-java"
```
change to

```scala
"org.apache.flink" % "flink-streaming-java"
```

this will make SBT to not add a Scala version suffix like _2.12 to the end of artifactId when
downloading from the Maven central.

0 comments on commit 876d0b8

Please sign in to comment.