Added JDK8, updated JDK11 version, added JDK14 and JDK15. Fixed comments and added links to sources.
diff --git a/java/repositories.bzl b/java/repositories.bzl index 21583cd..c4d36a4 100644 --- a/java/repositories.bzl +++ b/java/repositories.bzl
@@ -128,16 +128,66 @@ ], ) -def remote_jdk9_repos(): - """OpenJDK distributions that should only be downloaded on demand. - - E.g. when building a java_library or a genrule that uses java make - variables). This will allow us to stop bundling the full JDK with Bazel. - Note that while these are currently the same as the openjdk_* rules in - Bazel's WORKSPACE file, but they don't have to be the same. +def remote_jdk8_repos(): + """Imports OpenJDK 8 repositories. The source-code for this OpenJDK can be found at: + https://mirror.bazel.build/openjdk/azul-zulu-8.50.0.51-ca-jdk8.0.275/legacy8ujsse-Legacy8uJSSE_1_1_1.tar.gz + https://mirror.bazel.build/openjdk/azul-zulu-8.50.0.51-ca-jdk8.0.275/openjsse-OpenJSSE_1_1_5.tar.gz + https://mirror.bazel.build/openjdk/azul-zulu-8.50.0.51-ca-jdk8.0.275/zsrc8.50.0.53-ca-fx-jdk8.0.275.zip + """ + maybe( + http_archive, + name = "remote_jdk8_linux_aarch64", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "f4072e82faa5a09fab2accf2892d4684324fc999d614583c3ff785e87c03963f", + strip_prefix = "zulu8.50.51.263-ca-jdk8.0.275-linux_aarch64", + urls = [ + "https://mirror.bazel.build/openjdk/azul-zulu-8.50.0.51-ca-jdk8.0.275/zulu8.50.51.263-ca-jdk8.0.275-linux_aarch64.tar.gz", + "https://cdn.azul.com/zulu-embedded/bin/zulu8.50.51.263-ca-jdk8.0.275-linux_aarch64.tar.gz", + ], + ) + maybe( + http_archive, + name = "remote_jdk8_linux", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "1db6b2fa642950ee1b4b1ec2b6bc8a9113d7a4cd723f79398e1ada7dab1c981c", + strip_prefix = "zulu8.50.0.51-ca-jdk8.0.275-linux_x64", + urls = [ + "https://mirror.bazel.build/openjdk/azul-zulu-8.50.0.51-ca-jdk8.0.275/zulu8.50.0.51-ca-jdk8.0.275-linux_x64.tar.gz", + "https://cdn.azul.com/zulu/bin/zulu8.50.0.51-ca-jdk8.0.275-linux_x64.tar.gz", + ], + ) + maybe( + http_archive, + name = "remote_jdk8_macos", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "b03176597734299c9a15b7c2cc770783cf14d121196196c1248e80c026b59c17", + strip_prefix = "zulu8.50.0.51-ca-jdk8.0.275-macosx_x64", + urls = [ + "https://mirror.bazel.build/openjdk/azul-zulu-8.50.0.51-ca-jdk8.0.275/zulu8.50.0.51-ca-jdk8.0.275-macosx_x64.tar.gz", + "https://cdn.azul.com/zulu/bin/zulu8.50.0.51-ca-jdk8.0.275-macosx_x64.tar.gz", + ], + ) + maybe( + http_archive, + name = "remote_jdk8_windows", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "49759b2bd2ab28231a21ff3a3bb45824ddef55d89b5b1a05a62e26a365da0774", + strip_prefix = "zulu8.50.0.51-ca-jdk8.0.275-win_x64", + urls = [ + "https://mirror.bazel.build/openjdk/azul-zulu-8.50.0.51-ca-jdk8.0.275/zulu8.50.0.51-ca-jdk8.0.275-win_x64.zip", + "https://cdn.azul.com/zulu/bin/zulu8.50.0.51-ca-jdk8.0.275-win_x64.zip", + ], + ) + +def remote_jdk9_repos(): + """Imports OpenJDK 9 repositories. + + The source-code for this OpenJDK can be found at: + https://mirror.bazel.build/openjdk.linaro.org/releases/jdk9-src-1708.tar.xz https://openjdk.linaro.org/releases/jdk9-src-1708.tar.xz + https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zsrc9.0.7.1-jdk9.0.7.zip """ maybe( http_archive, @@ -182,8 +232,14 @@ ) def remote_jdk10_repos(): - # The source-code for this OpenJDK can be found at: - # https://openjdk.linaro.org/releases/jdk10-src-1804.tar.xz + """Imports OpenJDK 10 repositories. + + The source-code for this OpenJDK can be found at: + https://openjdk.linaro.org/releases/jdk10-src-1804.tar.xz + https://mirror.bazel.build/openjdk.linaro.org/releases/jdk10-src-1804.tar.xz + https://mirror.bazel.build/openjdk/azul-zulu10.2+3-jdk10.0.1/zsrc10.2+3-jdk10.0.1.zip + """ + maybe( http_archive, name = "remote_jdk10_linux_aarch64", @@ -226,52 +282,89 @@ ) def remote_jdk11_repos(): - # The source-code for this OpenJDK can be found at: - # https://openjdk.linaro.org/releases/jdk10-src-1804.tar.xz + """Imports OpenJDK 11 repositories. + + The source-code for this OpenJDK can be found at: + https://mirror.bazel.build/openjdk/azul-zulu11.43.55-ca-jdk11.0.9.1/zsrc11.43.55-jdk11.0.9.1.zip + https://mirror.bazel.build/openjdk/azul-zulu11.43.55-ca-jdk11.0.9.1/openjsse-OpenJSSE_1_1_5.tar.gz + https://mirror.bazel.build/openjdk/azul-zulu11.43.100-ca-jdk11.0.9.1/zulu11.43.100-ca-src-jdk11.0.9.1-linux_aarch64.zip + """ + maybe( http_archive, name = "remote_jdk11_linux_aarch64", build_file = "@local_jdk//:BUILD.bazel", - sha256 = "3b0d91611b1bdc4d409afcf9eab4f0e7f4ae09f88fc01bd9f2b48954882ae69b", - strip_prefix = "zulu11.31.15-ca-jdk11.0.3-linux_aarch64", + sha256 = "15f9e3512b2c011a33c36b4ff27a8e70fefc18805509d5d58b0bd3b6684cbe8e", + strip_prefix = "zulu11.43.100-ca-jdk11.0.9.1-linux_aarch64", urls = [ - "https://mirror.bazel.build/openjdk/azul-zulu11.31.15-ca-jdk11.0.3/zulu11.31.15-ca-jdk11.0.3-linux_aarch64.tar.gz", + "https://mirror.bazel.build/openjdk/azul-zulu11.43.100-ca-jdk11.0.9.1/zulu11.43.100-ca-jdk11.0.9.1-linux_aarch64.tar.gz", + "https://cdn.azul.com/zulu-embedded/bin/zulu11.43.100-ca-jdk11.0.9.1-linux_aarch64.tar.gz", ], ) maybe( http_archive, - "remote_jdk11_linux", + name = "remote_jdk11_linux", build_file = "@local_jdk//:BUILD.bazel", - sha256 = "232b1c3511f0d26e92582b7c3cc363be7ac633e371854ca2f2e9f2b50eb72a75", - strip_prefix = "zulu11.2.3-jdk11.0.1-linux_x64", + sha256 = "6c79bfe8bb06c82b72ef2f293a14becef56b3078d298dc75fda4225cbb2d3d0c", + strip_prefix = "zulu11.43.55-ca-jdk11.0.9.1-linux_x64", urls = [ - "https://mirror.bazel.build/openjdk/azul-zulu11.2.3-jdk11.0.1/zulu11.2.3-jdk11.0.1-linux_x64.tar.gz", + "https://mirror.bazel.build/openjdk/azul-zulu11.43.55-ca-jdk11.0.9.1/zulu11.43.55-ca-jdk11.0.9.1-linux_x64.tar.gz", + "https://cdn.azul.com/zulu/bin/zulu11.43.55-ca-jdk11.0.9.1-linux_x64.tar.gz", + ], + ) + maybe( + http_archive, + name = "remote_jdk11_macos", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "11701b54e62d5cde81a4fa0211776448e38a368c1cfc4ad73bb3bbd628107563", + strip_prefix = "zulu11.43.55-ca-jdk11.0.9.1-macosx_x64", + urls = [ + "https://mirror.bazel.build/openjdk/azul-zulu11.43.55-ca-jdk11.0.9.1/zulu11.43.55-ca-jdk11.0.9.1-macosx_x64.tar.gz", + "https://cdn.azul.com/zulu/bin/zulu11.43.55-ca-jdk11.0.9.1-macosx_x64.tar.gz", ], ) maybe( http_archive, - "remote_jdk11_macos", + name = "remote_jdk11_windows", build_file = "@local_jdk//:BUILD.bazel", - sha256 = "1edf366ee821e5db8e348152fcb337b28dfd6bf0f97943c270dcc6747cedb6cb", - strip_prefix = "zulu11.2.3-jdk11.0.1-macosx_x64", + sha256 = "b619df7a6f625095ee4adb3add44839b0b1af2adc09a16c7312ca96bb2b61ec9", + strip_prefix = "zulu11.43.55-ca-jdk11.0.9.1-win_x64", urls = [ - "https://mirror.bazel.build/openjdk/azul-zulu11.2.3-jdk11.0.1/zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz", + "https://mirror.bazel.build/openjdk/azul-zulu11.43.55-ca-jdk11.0.9.1/zulu11.43.55-ca-jdk11.0.9.1-win_x64.zip", + "https://cdn.azul.com/zulu/bin/zulu11.43.55-ca-jdk11.0.9.1-win_x64.zip", ], ) maybe( http_archive, - "remote_jdk11_windows", + name = "remote_jdk11_linux_ppc64le", build_file = "@local_jdk//:BUILD.bazel", - sha256 = "8e1e2b8347de6746f3fd1538840dd643201533ab113abc4ed93678e342d28aa3", - strip_prefix = "zulu11.2.3-jdk11.0.1-win_x64", + sha256 = "a417db0295b1f4b538ecbaf7c774f3a177fab9657a665940170936c0eca4e71a", + strip_prefix = "jdk-11.0.7+10", urls = [ - "https://mirror.bazel.build/openjdk/azul-zulu11.2.3-jdk11.0.1/zulu11.2.3-jdk11.0.1-win_x64.zip", + "https://mirror.bazel.build/openjdk/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz", + "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz", + ], + ) + maybe( + http_archive, + name = "remote_jdk11_linux_s390x", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "d9b72e87a1d3ebc0c9552f72ae5eb150fffc0298a7cb841f1ce7bfc70dcd1059", + strip_prefix = "jdk-11.0.7+10", + urls = [ + "https://mirror.bazel.build/github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz", + "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz", ], ) def remote_jdk12_repos(): + """Imports OpenJDK 12 repositories. + + The source-code for this OpenJDK can be found at: + https://mirror.bazel.build/openjdk/azul-zulu12.2.3-ca-jdk12.0.1/zsrc12.2.3-jdk12.0.1.zip + """ maybe( http_archive, name = "remote_jdk12_linux", @@ -300,6 +393,71 @@ ], ) +def remote_jdk14_repos(): + """Imports OpenJDK 14 repositories.""" + maybe( + http_archive, + name = "remote_jdk14_linux", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "48bb8947034cd079ad1ef83335e7634db4b12a26743a0dc314b6b861480777aa", + strip_prefix = "zulu14.28.21-ca-jdk14.0.1-linux_x64", + urls = [ + "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-linux_x64.tar.gz", + ], + ) + maybe( + http_archive, + name = "remote_jdk14_macos", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "088bd4d0890acc9f032b738283bf0f26b2a55c50b02d1c8a12c451d8ddf080dd", + strip_prefix = "zulu14.28.21-ca-jdk14.0.1-macosx_x64", + urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-macosx_x64.tar.gz"], + ) + maybe( + http_archive, + name = "remote_jdk14_windows", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "9cb078b5026a900d61239c866161f0d9558ec759aa15c5b4c7e905370e868284", + strip_prefix = "zulu14.28.21-ca-jdk14.0.1-win_x64", + urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-win_x64.zip"], + ) + +def remote_jdk15_repos(): + """Imports OpenJDK 15 repositories.""" + maybe( + http_archive, + name = "remote_jdk15_linux", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "0a38f1138c15a4f243b75eb82f8ef40855afcc402e3c2a6de97ce8235011b1ad", + strip_prefix = "zulu15.27.17-ca-jdk15.0.0-linux_x64", + urls = [ + "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz", + "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz", + ], + ) + maybe( + http_archive, + name = "remote_jdk15_macos", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "f80b2e0512d9d8a92be24497334c974bfecc8c898fc215ce0e76594f00437482", + strip_prefix = "zulu15.27.17-ca-jdk15.0.0-macosx_x64", + urls = [ + "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz", + "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz", + ], + ) + maybe( + http_archive, + name = "remote_jdk15_windows", + build_file = "@local_jdk//:BUILD.bazel", + sha256 = "f535a530151e6c20de8a3078057e332b08887cb3ba1a4735717357e72765cad6", + strip_prefix = "zulu15.27.17-ca-jdk15.0.0-win_x64", + urls = [ + "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip", + "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip", + ], + ) + def bazel_skylib(): maybe( http_archive,