Bug: 288313864

Clone this repo:
  1. 517c116 Add janitors to the OWNERS file by Sadaf Ebrahimi · 5 weeks ago main master
  2. 6558c51 Merge "Upgrade rules_java to 8.6.2" into main am: 00d7bae325 by Treehugger Robot · 6 weeks ago
  3. 00d7bae Merge "Upgrade rules_java to 8.6.2" into main by Treehugger Robot · 6 weeks ago
  4. 70f6636 Upgrade rules_java to 8.6.2 by HONG Yifan · 7 weeks ago
  5. 449303e Add `incompatible_language_version_bootclasspath` flag by Fabian Meumertzheim · 7 weeks ago upstream/8.6.2

rules_java

  • Postsubmit Build status
  • Postsubmit + Current Bazel Incompatible Flags Build status

Java Rules for Bazel https://bazel.build.

Documentation

For a quickstart tutorial, see https://bazel.build/start/java

For slightly more advanced usage, like setting up toolchains or writing your own java-like rules, see https://bazel.build/docs/bazel-and-java

Core Java rules

Add a load like:

load("@rules_java//java:java_library.bzl", "java_library")

to your BUILD / BUILD.bazel / bzl` files

For detailed docs on the core rules, see https://bazel.build/reference/be/java