Skip to content

Commit f643e3b

Browse files
committed
bazel: avoid future strange JDK failures
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent b583811 commit f643e3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,10 @@ build --remote_upload_local_results=false
9393
# Without this, bazelisk build ... builds the bazel-orfs tests
9494
build --build_tag_filters=-orfs
9595

96+
# Avoid future strange failures because bazel is looking for locally installed
97+
# JDK, use bazel bcr provided JDK.
98+
#
99+
# https://bazel.build/docs/bazel-and-java#hermetic-testing
100+
test --java_runtime_version=remotejdk_11
101+
96102
try-import %workspace%/user.bazelrc

0 commit comments

Comments
 (0)