From 9b03177e3be1eec919af2b242a709b089888a07c Mon Sep 17 00:00:00 2001 From: Ali Ahmed Date: Mon, 31 Jul 2017 12:31:02 -0700 Subject: [PATCH 1/3] Use Java ver 8 as source and target version Signed-off-by: Ali Ahmed --- tools/java/BUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/java/BUILD b/tools/java/BUILD index 26ae95b76ca..f5ab4aba54a 100644 --- a/tools/java/BUILD +++ b/tools/java/BUILD @@ -5,8 +5,8 @@ package(default_visibility = ["//visibility:public"]) java_toolchain( name = "heron_java_toolchain", encoding = "UTF-8", - source_version = "7", - target_version = "7", + source_version = "8", + target_version = "8", bootclasspath = ["@bazel_tools//tools/jdk:bootclasspath"], extclasspath = ["@bazel_tools//tools/jdk:extdir"], javac = ["@bazel_tools//third_party/java/jdk/langtools:javac_jar"], From 5eaffc40f91e035732739a53a1a4a878c05fcc74 Mon Sep 17 00:00:00 2001 From: Ali Ahmed Date: Mon, 31 Jul 2017 12:31:02 -0700 Subject: [PATCH 2/3] Use Java ver 8 as source and target version Signed-off-by: Ali Ahmed --- website/content/docs/developers/compiling/compiling.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/website/content/docs/developers/compiling/compiling.md b/website/content/docs/developers/compiling/compiling.md index fd519055a2e..009c456cc25 100644 --- a/website/content/docs/developers/compiling/compiling.md +++ b/website/content/docs/developers/compiling/compiling.md @@ -24,11 +24,10 @@ You must have the following installed to compile Heron: * [Bazel](http://bazel.io/docs/install.html) = {{% bazelVersion %}}. Later versions might work but have not been tested. See [Installing Bazel]({{< ref "#installing-bazel" >}}) below. -* [Java - 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) - is required by Bazel but Heron does not use Java 8 features; Heron +* [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) + is required by Bazel and Heron; [topologies](../../../concepts/topologies) can be written in Java 7 or above - and all Heron jars are compatible with Java 7. + , all Heron jars are required to run with Java 8. * [Autoconf](http://www.gnu.org/software/autoconf/autoconf.html) >= 2.6.3 * [Automake](https://www.gnu.org/software/automake/) >= 1.11.1 From d79f7ff2708574c69aeec7c9391732b81509cc4e Mon Sep 17 00:00:00 2001 From: Ali Ahmed Date: Mon, 31 Jul 2017 12:31:02 -0700 Subject: [PATCH 3/3] Use Java ver 8 as source and target version Signed-off-by: Ali Ahmed --- website/content/docs/developers/compiling/compiling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/content/docs/developers/compiling/compiling.md b/website/content/docs/developers/compiling/compiling.md index 009c456cc25..c585326b843 100644 --- a/website/content/docs/developers/compiling/compiling.md +++ b/website/content/docs/developers/compiling/compiling.md @@ -27,7 +27,7 @@ You must have the following installed to compile Heron: * [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) is required by Bazel and Heron; [topologies](../../../concepts/topologies) can be written in Java 7 or above - , all Heron jars are required to run with Java 8. + , but Heron jars are required to run with a Java 8 JRE. * [Autoconf](http://www.gnu.org/software/autoconf/autoconf.html) >= 2.6.3 * [Automake](https://www.gnu.org/software/automake/) >= 1.11.1