Clone this repo:


  1. 18a20b0 Merge pull request #50 from bazelbuild:comius-patch-2 by Copybara-Service · 5 days ago master
  2. cdb84b6 Update information in the by Ivo List · 6 days ago
  3. ff11ae1 Merge pull request #46 from bazelbuild:comius-patch-1 by Copybara-Service · 6 weeks ago
  4. 7a62228 Update release instructions with distdir_depos.bzl by Ivo List · 6 weeks ago
  5. 5710642 Merge pull request #42 from by Copybara-Service · 3 months ago

Bazel Tools for Java

This is a repository for the tools used by Bazel to compile Java.

The source code of the Bazel Tools for Java is currently checked in the bazel repository. The source code will be moved incrementally to this repository.

Upgrade a Bazel project to use custom java_tools version

To use a specific java_tools release in your Bazel project please add the http_archive definitions in your WORKSPACE file.

For Bazel versions above 4.0.0, use java_tools releases >= v11. No additional options are needed.

For Bazel versions <= 4.0.0 use java_tools releases <= v10 and set the options --java_toolchain and/or --host_java_toolchain accordingly.

All java_tools releases can be found under


The releases can be found under java_tools/releases. For previous releases see the issues marked with the release label.

If you're interested in the release process please see docs/