From 3bf858ee57388acd208f5d2d941a699636afacb9 Mon Sep 17 00:00:00 2001 From: Thomas Holenstein Date: Mon, 22 Apr 2024 07:59:05 -0700 Subject: [PATCH] Specify java_language_version and java_runtime_version for all Java repositories we have. This is the default so it shouldn't change anything. However, I think we should make explicit what we support. PiperOrigin-RevId: 627037416 Change-Id: I7e648eddf67a208a62e7c42c03c9d10890c82b3f --- .bazelrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bazelrc b/.bazelrc index 64ffd68..b1b8ff1 100644 --- a/.bazelrc +++ b/.bazelrc @@ -4,3 +4,5 @@ always --noenable_bzlmod # `bazel build --cxxopt='-std=c++' --host_cxxopt='c++' ...` # (Both -std and --host_cxxopt must be set to force the desired version.) build --cxxopt='-std=c++17' --host_cxxopt='-std=c++17' +build --java_language_version=8 +build --java_runtime_version=local_jdk