-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide java_common.merge interface for Java compilation of proto lib…
…raries Remove `exports`, `runtime_deps` parameters and introduce `merge_java_outputs`, `merge_source_jars` parameters. Drop corresponding providers. This optimisation corresponds to optimisations done natively. The new parameters are only available in builtins. Natively only `JavaCompilationArgsProvider`, `JavaCcInfoProvider` are merged from the deps. `java_common.merge` with `include_compilation_info` disabled provides `JavaCompilationArgsProvider`, `JavaCcInfoProvider` and additionally `JavaPluginInfo`, `runtimeJars` and `constraints`. Additional providers are empty in case of Java proto libraries. (Exception are `constraints`, which are used in `java_lite_proto_library`). In both cases `JavaRuleOutputJarsProvider`, `JavaSourceJarsProvider`, `JavaGenJarsProvider`, `JavaCompilationInfoProvider` are dropped (for optimisation). PiperOrigin-RevId: 451966776 Change-Id: I7459f9f62b7a4e6d14c26a502544b1318e6bdad7
- Loading branch information
1 parent
a7ec710
commit 4c26c3a
Showing
6 changed files
with
46 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters