jgit/tools
David Ostrovsky be732c16ab Bazel: Switch to using toolchain resolution for java rules
Bump Bazel version to release 5.0.0. In this new Bazel release,
--incompatible_use_toolchain_resolution_for_java_rules is flipped, that
means that the build must be adapted to toolchain resolution.

Specification toolchain resolution for java rules is here: [1]. Main
tracking Bazel issue is here: [2].

Given that new Bazel release also added support for remote JDK 17, add
experimental support for building with remote JDK 17 to produce major
byte code version 61.

Test Plan:

To build with remote JDK 11 run:

  $ bazel build :all

To build with remote JDK 17 run:

  $ bazel build --config java17 :all

[1] https://docs.google.com/document/d/1MVbBxbKVKRJJY7DnkptHpvz7ROhyAYy4a-TZ-n7Q0r4/edit?usp=sharing
[2] https://github.com/bazelbuild/bazel/issues/7849

Change-Id: I8d26dff722c6677ea7642913b61e416b23ea9041
2022-01-20 06:40:51 -04:00
..
bzl Bazel: Use java_plugin and java_binary from @rules_java in jmh.bzl 2019-11-26 08:43:34 +01:00
maven-central Add o.e.j.ssh.apache.agent to maven central deployment scripts 2021-11-29 21:14:25 +01:00
BUILD Bazel: Switch to using toolchain resolution for java rules 2022-01-20 06:40:51 -04:00
FILE_HEADER Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
bazlets.bzl Bazel: Stop using native.git_repository 2019-03-03 13:15:19 +09:00
default.defs Implement Buck driven build 2015-12-31 10:08:55 -08:00
eclipse-JGit-Format.xml Enable compiler option --release 2021-09-29 17:13:01 +02:00
git.defs buck: set Bundle-Version for :jgit_bin 2016-01-03 09:30:16 -08:00
graft-old-history.sh Utility to graft old JGit history onto repository 2009-09-29 17:03:34 -07:00
release.sh Run Maven build in release.sh concurrently to speedup release 2016-05-04 17:34:35 +02:00
version.sh Handle Fragment-Host declaration when updating version 2020-06-09 16:45:19 +02:00
workspace_status.py Bazel: Add workspace status command to stamp final artifact 2020-07-17 01:10:15 +02:00