Hello,The documentation page for building Gerrit still has Java 17 as default and Java 21 as explicit config for bazel.
<https://gerrit.googlesource.com/gerrit/+/refs/heads/master/Documentation/dev-bazel.txt>