aboutsummaryrefslogtreecommitdiffhomepage
path: root/WORKSPACE
diff options
context:
space:
mode:
authorGravatar Philipp Wollermann <philwo@google.com>2017-03-17 15:11:58 +0000
committerGravatar Yue Gan <yueg@google.com>2017-03-20 11:35:58 +0000
commit9504827b21217aaa28a248ce499dd25c6a415d6e (patch)
tree5eb03b2cd0318d7dc3cb067e1898fd1678ac01e5 /WORKSPACE
parent6b2d8b8c63938d200848618b847da96d54f22d72 (diff)
Build a version of Bazel with a bundled OpenJDK inside the binary.
We're using Azul Systems, Inc.'s ZuluĀ® OpenJDK build[1], as it's a good vanilla build of OpenJDK available for our three most important platforms: zulu8.20.0.5-jdk8.0.121-linux_x64.tar.gz zulu8.20.0.5-jdk8.0.121-macosx_x64.zip zulu8.20.0.5-jdk8.0.121-win_x64.zip You can build & run a Bazel binary with an embedded JDK by simple doing: bazel build //src:bazel_with_jdk bazel-bin/src/bazel_with_jdk info The "bazel license" command prints the license of the embedded OpenJDK. We mirror the binaries and sources of the OpenJDK used for bundling on this website: https://bazel-mirror.storage.googleapis.com/openjdk/index.html RELNOTES: Bazel can now be built with a bundled version of the OpenJDK. This makes it possible to use Bazel on systems without a JDK, or where the installed JDK is too old. [1] http://www.azul.com/downloads/zulu/ -- PiperOrigin-RevId: 150440467 MOS_MIGRATED_REVID=150440467
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE19
1 files changed, 19 insertions, 0 deletions
diff --git a/WORKSPACE b/WORKSPACE
index 0eb938e7e5..140dd2c3d8 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -67,3 +67,22 @@ new_local_repository(
path = "./third_party/protobuf/3.0.0/",
build_file = "./third_party/protobuf/3.0.0/com_google_protobuf_java.BUILD",
)
+
+# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
+http_file(
+ name = "openjdk_linux",
+ url = "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.20.0.5-jdk8.0.121/zulu8.20.0.5-jdk8.0.121-linux_x64.tar.gz",
+ sha256 = "7fdfb17d890406470b2303d749d3138e7f353749e67a0a22f542e1ab3e482745",
+)
+
+http_file(
+ name = "openjdk_macos",
+ url = "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.20.0.5-jdk8.0.121/zulu8.20.0.5-jdk8.0.121-macosx_x64.zip",
+ sha256 = "2a58bd1d9b0cbf0b3d8d1bcdd117c407e3d5a0ec01e2f53565c9bec5cf9ea78b",
+)
+
+http_file(
+ name = "openjdk_win",
+ url = "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.20.0.5-jdk8.0.121/zulu8.20.0.5-jdk8.0.121-win_x64.zip",
+ sha256 = "35414df28f17704546b9559b5e62b4d00cdc8fdfd349116be4f987abaeaaff68",
+)