[
https://issues.apache.org/jira/browse/FLINK-20845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martijn Visser updated FLINK-20845:
-----------------------------------
Release Note:
Support for Scala 2.11 has been removed. All Flink dependencies that
(transitively) depend on Scala are suffixed with the Scala version that they
are built for, for example flink-streaming-scala_2.12. Users should update all
Flink dependecies, changing "2.11" to "2.12". For example,
"flink-streaming-java_2.11" needs to be changed to "flink-streaming-java_2.12".
Scala versions (2.11, 2.12, etc.) are not binary compatible with one another.
That also means that there's no guarantee that you can restore from a
savepoint, made with a Flink Scala 2.11 application, if you're upgrading to a
Flink Scala 2.12 application. This depends on the data types that you have been
using in your application.
was:
Support for Scala 2.11 has been removed. All Flink dependencies that
(transitively) depend on Scala are suffixed with the Scala version that they
are built for, for example flink-streaming-scala_2.12. Users should update all
Flink dependecies, changing `2.11` to `2.12`. For example,
`flink-streaming-java_2.11` needs to be changed to `flink-streaming-java_2.12`.
Scala versions (2.11, 2.12, etc.) are not binary compatible with one another.
That also means that there's no guarantee that you can restore from a
savepoint, made with a Flink Scala 2.11 application, if you're upgrading to a
Flink Scala 2.12 application. This depends on the data types that you have been
using in your application.
> Drop support for Scala 2.11
> ---------------------------
>
> Key: FLINK-20845
> URL: https://issues.apache.org/jira/browse/FLINK-20845
> Project: Flink
> Issue Type: Sub-task
> Components: API / Scala
> Reporter: Nick Burkard
> Assignee: Nick Burkard
> Priority: Major
> Labels: auto-unassigned, pull-request-available
>
> The first step to adding support for Scala 2.13 is to drop Scala 2.11.
> Community discussion can be found
> [here|https://lists.apache.org/thread.html/ra817c5b54e3de48d80e5b4e0ae67941d387ee25cf9779f5ae37d0486%40%3Cdev.flink.apache.org%3E].
> * Scala 2.11 was released in November 2017 and is quite old now. Most
> open-source libraries no longer build for it.
> * Upgrading libraries to support 2.13 will be much easier without 2.11. Many
> do not support 2.11, 2.12 and 2.13 at the same time, so this is basically
> required to get 2.13 support.
> Considerations:
> * The Flink Scala Shell submodule still does not support Scala 2.12. It isn't
> a strict dependency for dropping Scala 2.11, but would be nice to have before
> making the cut.
> * Stateful functions previously needed Scala 2.11, but it looks like it [now
> supports 2.12|https://github.com/apache/flink-statefun/pull/149].
--
This message was sent by Atlassian Jira
(v8.3.4#803005)