Unfortunately embedded JDK9 switch in 0.16.0 Bazel release also
broke projects (most notably stable branch of Gerrit Code Review)
*with* a separate JDK8 installed: [1].
That's because the annotation processor machinery is using embedded
JDK and some outdated versions of processor libraries (e.g.: Dagger
and auto-value) are not JDK9 ready: [2], [3]. While we were able to
bump those versions on very stable gerrit branch and make Bazel 0.16.0
work there: [4],[5], what if we couldn't? That means, that we wouldn't
be able to build older Gerrit versions with newer Bazel versions. We
could handle this, of course, but we would need time to adapt our CI
toolchain to use older Bazel versions on older Gerrit branches. ATM
we use one single Bazel docker image to build gerrit master and all
stable branches.
[1] https://groups.google.com/d/topic/bazel-discuss/zODjrcJtk2E/discussion
[2] https://github.com/google/dagger/issues/880
[3] https://github.com/google/auto/issues/560
[4] https://gerrit-review.googlesource.com/c/gerrit/+/191186
[5] https://gerrit-review.googlesource.com/c/gerrit/+/191190
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/c71f93e4-26d8-4c9f-9d32-dac3b4280b65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Liam, will your fixes to enable targeting JDK9 (for https://github.com/bazelbuild/bazel/issues/5744) address the annotation processor issues?