Skip to content

Commit

Permalink
Bump java language level for the compiler to 21.
Browse files Browse the repository at this point in the history
Most Google tools incl. Closure Compiler switched to Java 21, it will start being problem when we start doing upgrades. I am switching it now to avoid working open-source specific workarounds.

PiperOrigin-RevId: 731813267
  • Loading branch information
gkdn authored and copybara-github committed Feb 27, 2025
1 parent 91d3783 commit bb21332
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ test --test_output=errors
build --java_language_version=11
build --java_runtime_version=11

# Enable Java 17 for J2CL compiler itself
build --tool_java_language_version=17
build --tool_java_runtime_version=17
# Enable Java 21 for J2CL compiler itself
build --tool_java_language_version=21
build --tool_java_runtime_version=21
6 changes: 3 additions & 3 deletions samples/guava/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ test --test_output=errors
build --java_language_version=11
build --java_runtime_version=11

# Enable Java 17 for J2CL compiler itself
build --tool_java_language_version=17
build --tool_java_runtime_version=17
# Enable Java 21 for J2CL compiler itself
build --tool_java_language_version=21
build --tool_java_runtime_version=21
6 changes: 3 additions & 3 deletions samples/helloworld/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ test --test_output=errors
build --java_language_version=11
build --java_runtime_version=11

# Enable Java 17 for J2CL compiler itself
build --tool_java_language_version=17
build --tool_java_runtime_version=17
# Enable Java 21 for J2CL compiler itself
build --tool_java_language_version=21
build --tool_java_runtime_version=21
6 changes: 3 additions & 3 deletions samples/wasm/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ test --test_output=errors
build --java_language_version=11
build --java_runtime_version=11

# Enable Java 17 for J2CL compiler itself
build --tool_java_language_version=17
build --tool_java_runtime_version=17
# Enable Java 21 for J2CL compiler itself
build --tool_java_language_version=21
build --tool_java_runtime_version=21

0 comments on commit bb21332

Please sign in to comment.