You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2019/03/27 12:54:59 UTC
[flink] branch master updated: [FLINK-12007][scala][docs] Clarify
2.12 build instructions
This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 92f2d0d [FLINK-12007][scala][docs] Clarify 2.12 build instructions
92f2d0d is described below
commit 92f2d0d2a65fdbf3c2cb3abefb0a6276822271aa
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Wed Mar 27 13:54:06 2019 +0100
[FLINK-12007][scala][docs] Clarify 2.12 build instructions
---
docs/dev/projectsetup/dependencies.md | 4 ----
docs/flinkDev/building.md | 7 ++++++-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/docs/dev/projectsetup/dependencies.md b/docs/dev/projectsetup/dependencies.md
index 42a124c..5efd78a 100644
--- a/docs/dev/projectsetup/dependencies.md
+++ b/docs/dev/projectsetup/dependencies.md
@@ -162,10 +162,6 @@ pick the Scala version that matches their application's Scala version.
Please refer to the [build guide]({{ site.baseurl }}/flinkDev/building.html#scala-versions)
for details on how to build Flink for a specific Scala version.
-**Note:** Because of major breaking changes in Scala 2.12, Flink 1.5 currently builds only for Scala 2.11.
-We aim to add support for Scala 2.12 in the next versions.
-
-
## Hadoop Dependencies
**General rule: It should never be necessary to add Hadoop dependencies directly to your application.**
diff --git a/docs/flinkDev/building.md b/docs/flinkDev/building.md
index 56cf928..9f94482 100644
--- a/docs/flinkDev/building.md
+++ b/docs/flinkDev/building.md
@@ -119,7 +119,12 @@ The `-Pvendor-repos` activates a Maven [build profile](http://maven.apache.org/g
Flink has APIs, libraries, and runtime modules written in [Scala](http://scala-lang.org). Users of the Scala API and libraries may have to match the Scala version of Flink with the Scala version of their projects (because Scala is not strictly backwards compatible).
-Since version 1.7 Flink builds with Scala version 2.11 and 2.12.
+Since version 1.7 Flink builds with Scala version 2.11 (default) and 2.12.
+
+To build FLink against Scala 2.12, issue the following command:
+{% hightlight bash %}
+mvn clean install -DskipTests -Dscala-2.12
+{% endhighlight %}
{% top %}