diff options
author | Luca Milanesio <luca.milanesio@gmail.com> | 2022-03-12 02:04:10 +0000 |
---|---|---|
committer | Luca Milanesio <luca.milanesio@gmail.com> | 2022-03-12 02:08:13 +0000 |
commit | 5fff60a37742db5026b6eae9fe52b4c5dc5287ba (patch) | |
tree | 1c9613e8d0d5056cc4a07a2c6b169a037f5688f8 | |
parent | 8ea9fec379c61e7ee6cebabb18649d1f9e203fca (diff) |
Restore Java 11 binary bytecode for releases to Maven
The switch to Java 8 as the default java toolchain in
Change-Id: Ieb0d627ce5f4 has missed that the Maven
release script generation was relying on the default
toolchain for publishing.
Introduce the Java 11 toolchain as the target for publishing
to Maven, so that the binary bytecode can be restored
as it was expected for all current v3.3.x versions.
Release-Notes: skip
Bug: Issue 15759
Change-Id: Ia4c29d1db800220cdbc4f1c015fdec9bd552188b
-rw-r--r-- | tools/maven/package.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/maven/package.bzl b/tools/maven/package.bzl index b25656da7f..eacb02b9f4 100644 --- a/tools/maven/package.bzl +++ b/tools/maven/package.bzl @@ -40,7 +40,7 @@ def maven_package( src = {}, doc = {}, war = {}): - build_cmd = ["bazel_cmd", "build"] + build_cmd = ["bazel_cmd", "build", "--java_toolchain=//tools:error_prone_warnings_toolchain_java11"] mvn_cmd = ["python", "tools/maven/mvn.py", "-v", version] api_cmd = mvn_cmd[:] api_targets = [] |