Skip to content

Commit

Permalink
Build java_tools targetting java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
hvadehra committed Apr 14, 2022
1 parent 187a545 commit 1905337
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@ build:bzlmod --experimental_enable_bzlmod
build:bzlmod --crosstool_top=@rules_cc.0.0.1.cc_configure.local_config_cc//:toolchain
build:bzlmod --xcode_version_config=@rules_cc.0.0.1.cc_configure.local_config_xcode//:host_xcodes

# Enable Java 11 language features (https://github.com/bazelbuild/bazel/issues/14592)
build --java_language_version=11
build --tool_java_language_version=11

# User-specific .bazelrc
try-import user.bazelrc
2 changes: 1 addition & 1 deletion src/upload_all_java_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fi
if [[ "$platform" != "windows" ]]; then
JAVA_VERSIONS=`cat src/test/shell/bazel/BUILD | grep '^JAVA_VERSIONS = ' | sed -e 's/JAVA_VERSIONS = //' | sed -e 's/["(),]//g'`
for java_version in $JAVA_VERSIONS; do
bazel test --verbose_failures --test_output=all --nocache_test_results \
bazel test --tool_java_language_version=11 --java_language_version=11 --verbose_failures --test_output=all --nocache_test_results \
//src/test/shell/bazel:bazel_java_test_local_java_tools_jdk${java_version} \
--define=LOCAL_JAVA_TOOLS_ZIP_URL="${file_url}" \
--define=LOCAL_JAVA_TOOLS_PREBUILT_ZIP_URL="${prebuilt_file_url}"
Expand Down

0 comments on commit 1905337

Please sign in to comment.