ctx | ctx; required The rule context. |
source_jars | sequence of Files; default is [] A list of the jars to be compiled. At least one of source_jars or source_files should be specified. |
source_files | sequence of Files; default is [] A list of the Java source files to be compiled. At least one of source_jars or source_files should be specified. |
output | File; required |
output_source_jar | File; or None; default is None The output source jar. Defaults to {output\_jar}-src.jar if unset. |
javac_opts | sequence of strings; default is [] A list of the desired javac options. |
deps | sequence of structs; default is [] A list of dependencies. |
runtime_deps | sequence of structs; default is [] A list of runtime dependencies. |
exports | sequence of structs; default is [] A list of exports. |
plugins | sequence of structs; or sequence of structs; default is [] A list of plugins. |
exported_plugins | sequence of structs; or sequence of structs; default is [] A list of exported plugins. |
native_libraries | sequence of CcInfos; default is [] CC native library dependencies that are needed for this library. |
annotation_processor_additional_inputs | sequence of Files; default is [] A list of inputs that the Java compilation action will take in addition to the Java sources for annotation processing. |
annotation_processor_additional_outputs | sequence of Files; default is [] A list of outputs that the Java compilation action will output in addition to the class jar from annotation processing. |
strict_deps | string; default is 'ERROR' A string that specifies how to handle strict deps. Possible values: ‘OFF’, ‘ERROR’, ‘WARN’ and ‘DEFAULT’. For more details see --strict_java_deps flag. By default ‘ERROR’. |
java_toolchain | Info; required A JavaToolchainInfo to be used for this compilation. Mandatory. |
bootclasspath | default is None A BootClassPathInfo to be used for this compilation. If present, overrides the bootclasspath associated with the provided java_toolchain. |
sourcepath | sequence of Files; default is [] |
resources | sequence of Files; default is [] |
resource_jars | sequence of Files; default is [] |
classpath_resources | sequence of Files; default is [] |
neverlink | bool; default is False |
enable_annotation_processing | bool; default is True Disables annotation processing in this compilation, causing any annotation processors provided in plugins or in exported_plugins of deps to be ignored. |
enable_compile_jar_action | bool; default is True Enables header compilation or ijar creation. If set to False, it forces use of the full class jar in the compilation classpaths of any dependants. Doing so is intended for use by non-library targets such as binaries that do not have dependants. |
add_exports | sequence of strings; default is [] Allow this library to access the given /. |
add_opens | sequence of strings; default is [] Allow this library to reflectively access the given /. |