Extensions > API reference > java

java

A java compiler configuration.

default_javac_flags

list java.default_javac_flags

The default flags for the Java compiler.

default_jvm_opts

list java.default_jvm_opts

Additional options to pass to the Java VM for each java_binary target

one_version_enforcement_level

string java.one_version_enforcement_level

The value of the --experimental_one_version_enforcement flag.

plugins

list java.plugins

A list containing the labels provided with --plugins, if any.

strict_java_deps

string java.strict_java_deps

The value of the strict_java_deps flag.