Skip to main content
Utilities for Java compilation support in Starlark.

Members

BootClassPathInfo

The provider used to supply bootclasspath information

compile

Compiles Java source files/jars from the implementation of a Starlark rule and returns a provider that represents the results of the compilation and can be added to the set of providers emitted by this rule.

Parameters

JavaRuntimeInfo

The key used to retrieve the provider that contains information about the Java runtime being used.

JavaToolchainInfo

The key used to retrieve the provider that contains information about the Java toolchain being used.

merge

Merges the given providers into a single JavaInfo.

Parameters

pack_sources

Packs sources and source jars into a single source jar file. The return value is typically passed to JavaInfo#source_jar .At least one of parameters output_jar or output_source_jar is required.

Parameters

run_ijar

Runs ijar on a jar, stripping it of its method bodies. This helps reduce rebuilding of dependent jars during any recompiles consisting only of simple changes to method implementations. The return value is typically passed to JavaInfo#compile_jar.

Parameters

stamp_jar

Stamps a jar with a target label for add_dep support. The return value is typically passed to JavaInfo#compile_jar. Prefer to use run_ijar when possible.

Parameters