Skip to content

Commit

Permalink
build: Build for Java 11
Browse files Browse the repository at this point in the history
For some reason, the language version of Java was defaulting to 8 rather
than 11. This explicitly sets the language version to match the SDK
version to silence warnings about Java 8 being deprecated.

Change-Id: I12ae188f56e1fbade0ff52c3ae69e349f632d78b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/191830
Reviewed-by: Ted Pudlik <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
Pigweed-Auto-Submit: Armando Montanez <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
  • Loading branch information
armandomontanez authored and CQ Bot Account committed Feb 12, 2024
1 parent 6ed0c3a commit 6d84543
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ build --ui_event_filters=-debug
build --incompatible_strict_action_env

# Workaround for https://github.com/bazelbuild/rules_jvm_external/issues/445.
build --java_language_version=11
build --tool_java_language_version=11
build --java_runtime_version=remotejdk_11
build --repo_env=JAVA_HOME=../bazel_tools/jdk

Expand Down

0 comments on commit 6d84543

Please sign in to comment.