IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/java
You can read about the migration, and let us know what you think.
Extensions >
API reference >
java
java
A java compiler configuration.default_javac_flags
list java.default_javac_flagsThe default flags for the Java compiler.
default_jvm_opts
list java.default_jvm_optsAdditional options to pass to the Java VM for each java_binary target
one_version_enforcement_level
string java.one_version_enforcement_levelThe value of the --experimental_one_version_enforcement flag.
plugins
list java.pluginsA list containing the labels provided with --plugins, if any.
strict_java_deps
string java.strict_java_depsThe value of the strict_java_deps flag.