Skip to content

Commit 54c2572

Browse files
philwoCopybara-Service
authored and
Copybara-Service
committed
Add openjdk_linux_archive java_toolchain for nojava platform.
PiperOrigin-RevId: 215373045
1 parent c070221 commit 54c2572

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

WORKSPACE

+12
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ http_file(
122122
],
123123
)
124124

125+
# Used by CI to test Bazel on platforms without an installed system JDK.
126+
# TODO(twerth): Migrate to @remotejdk when https://github.com/bazelbuild/bazel/pull/6216 is merged.
127+
new_http_archive(
128+
name = "openjdk_linux_archive",
129+
sha256 = "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87",
130+
urls = [
131+
"https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz",
132+
],
133+
strip_prefix = "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules",
134+
build_file_content = "java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])",
135+
)
136+
125137
http_file(
126138
name = "openjdk_macos",
127139
sha256 = "404e7058ff91f956612f47705efbee8e175a38b505fb1b52d8c1ea98718683de",

0 commit comments

Comments
 (0)