Skip to content

Commit

Permalink
Change the default java source_version / target_version to 11
Browse files Browse the repository at this point in the history
Using a language version of 8 and running with jdk21 (or later) results in:

```
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
```
PiperOrigin-RevId: 683542164
Change-Id: Id96bddac66812622015abf621a60327c5544c202
  • Loading branch information
hvadehra authored and copybara-github committed Oct 8, 2024
1 parent d028522 commit 59fd9ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions site/en/docs/user-manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@ This option specifies the version of Java sources. For example:
</pre>

compiles and allows only constructs compatible with Java 8 specification.
Default value is 8. -->
Possible values are: 8, 9, 10, 11, 14, 15, and 21 and may be extended by
Default value is 11. -->
Possible values are: 8, 9, 10, 11, 17, and 21 and may be extended by
registering custom Java toolchains using `default_java_toolchain`.

#### `--tool_java_language_version={{ "<var>" }}version{{ "</var>" }}` {:#tool-java-language-version}

The Java language version used to build tools that are executed during a build.
Default value is 8.
Default value is 11.

#### `--java_runtime_version={{ "<var>" }}version{{ "</var>" }}` {:#java-runtime-version}

Expand All @@ -349,7 +349,7 @@ downloads JDK 11 from a remote repository and run the Java application using it.

Default value is `local_jdk`.
Possible values are: `local_jdk`, `local_jdk_{{ "<var>" }}version{{ "</var>" }}`,
`remotejdk_11`, and `remotejdk_17`.
`remotejdk_11`, `remotejdk_17`, and `remotejdk_21`.
You can extend the values by registering custom JVM using either
`local_java_repository` or `remote_java_repository` repository rules.

Expand Down

0 comments on commit 59fd9ea

Please sign in to comment.