Skip to content

Commit

Permalink
[FLINK-11201] Update release notes to contain changes for SBT projects
Browse files Browse the repository at this point in the history
SBT projects which use the MiniClusterResource now have to explicitly add a test-jar
dependency on flink-runtime. The reason for this is that we moved the MiniClusterResource
to flink-runtime and sbt does not properly pull in transitive test-jar dependencies.
  • Loading branch information
tillrohrmann committed Dec 20, 2018
1 parent bab9699 commit eadfae0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/release-notes/flink-1.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,15 @@ It defaults to `UNBOUNDED` if not specified.

Snapshots created with `OperatorSnapshotUtil` are now written in the savepoint format `v2`.

### SBT projects and the MiniClusterResource

If you have a `sbt` project which uses the `MiniClusterResource`, you now have to add the `flink-runtime` test-jar dependency explicitly via:

`libraryDependencies += "org.apache.flink" %% "flink-runtime" % flinkVersion % Test classifier "tests"`

The reason for this is that the `MiniClusterResource` has been moved from `flink-test-utils` to `flink-runtime`.
The module `flink-test-utils` has correctly a `test-jar` dependency on `flink-runtime`.
However, `sbt` does not properly pull in transitive `test-jar` dependencies as described in this [sbt issue](https://github.com/sbt/sbt/issues/2964).
Consequently, it is necessary to specify the `test-jar` dependency explicitly.

{% top %}

0 comments on commit eadfae0

Please sign in to comment.