Skip to content

Commit 87d5987

Browse files
authored
Stop suggesting that Java's exported_plugins is transitive. (#1236)
Apparently it's not: https://bazel.build/reference/be/java#java_library.exported_plugins
1 parent c93d6ae commit 87d5987

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/kotlin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ kt_jvm_import(
119119
| :------------- | :------------- | :------------- | :------------- | :------------- |
120120
| <a id="kt_jvm_import-name"></a>name | A unique name for this target. | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required | |
121121
| <a id="kt_jvm_import-deps"></a>deps | Compile and runtime dependencies | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
122-
| <a id="kt_jvm_import-exported_compiler_plugins"></a>exported_compiler_plugins | Exported compiler plugins.<br><br>Compiler plugins listed here will be treated as if they were added in the plugins attribute of any targets that directly depend on this target. Unlike java_plugins' exported_plugins, this is not transitive | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
122+
| <a id="kt_jvm_import-exported_compiler_plugins"></a>exported_compiler_plugins | Exported compiler plugins.<br><br>Compiler plugins listed here will be treated as if they were added in the plugins attribute of any targets that directly depend on this target. Like java_plugins' exported_plugins, this is not transitive | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
123123
| <a id="kt_jvm_import-exports"></a>exports | Exported libraries.<br><br>Deps listed here will be made available to other rules, as if the parents explicitly depended on these deps. This is not true for regular (non-exported) deps. | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
124124
| <a id="kt_jvm_import-jar"></a>jar | The jar listed here is equivalent to an export attribute. | <a href="https://bazel.build/concepts/labels">Label</a> | optional | `None` |
125125
| <a id="kt_jvm_import-jars"></a>jars | The jars listed here are equavalent to an export attribute. The label should be either to a single class jar, or one or more filegroup labels. The filegroups, when resolved, must contain only one jar containing classes, and (optionally) one peer file containing sources, named `<jarname>-sources.jar`.<br><br>DEPRECATED - please use `jar` and `srcjar` attributes. | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
@@ -153,7 +153,7 @@ This rule compiles and links Kotlin and Java sources into a .jar file.
153153
| <a id="kt_jvm_library-data"></a>data | The list of files needed by this rule at runtime. See general comments about `data` at [Attributes common to all build rules](https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes). | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
154154
| <a id="kt_jvm_library-resources"></a>resources | A list of files that should be include in a Java jar. | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
155155
| <a id="kt_jvm_library-associates"></a>associates | Kotlin deps who should be considered part of the same module/compilation-unit for the purposes of "internal" access. Such deps must all share the same module space and so a target cannot associate to two deps from two different modules. | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
156-
| <a id="kt_jvm_library-exported_compiler_plugins"></a>exported_compiler_plugins | Exported compiler plugins.<br><br>Compiler plugins listed here will be treated as if they were added in the plugins attribute of any targets that directly depend on this target. Unlike `java_plugin`s exported_plugins, this is not transitive | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
156+
| <a id="kt_jvm_library-exported_compiler_plugins"></a>exported_compiler_plugins | Exported compiler plugins.<br><br>Compiler plugins listed here will be treated as if they were added in the plugins attribute of any targets that directly depend on this target. Like `java_plugin`s exported_plugins, this is not transitive | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
157157
| <a id="kt_jvm_library-exports"></a>exports | Exported libraries.<br><br>Deps listed here will be made available to other rules, as if the parents explicitly depended on these deps. This is not true for regular (non-exported) deps. | <a href="https://bazel.build/concepts/labels">List of labels</a> | optional | `[]` |
158158
| <a id="kt_jvm_library-javac_opts"></a>javac_opts | Javac options to be used when compiling this target. These opts if provided will be used instead of the ones provided to the toolchain. | <a href="https://bazel.build/concepts/labels">Label</a> | optional | `None` |
159159
| <a id="kt_jvm_library-kotlinc_opts"></a>kotlinc_opts | Kotlinc options to be used when compiling this target. These opts if provided will be used instead of the ones provided to the toolchain. | <a href="https://bazel.build/concepts/labels">Label</a> | optional | `None` |

kotlin/internal/jvm/jvm.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ these deps. This is not true for regular (non-exported) deps.""",
266266
Exported compiler plugins.
267267
268268
Compiler plugins listed here will be treated as if they were added in the plugins attribute
269-
of any targets that directly depend on this target. Unlike `java_plugin`s exported_plugins,
269+
of any targets that directly depend on this target. Like `java_plugin`s exported_plugins,
270270
this is not transitive""",
271271
default = [],
272272
providers = [[_KtCompilerPluginInfo], [KtPluginConfiguration]],
@@ -465,7 +465,7 @@ these deps. This is not true for regular (non-exported) deps.""",
465465
Exported compiler plugins.
466466
467467
Compiler plugins listed here will be treated as if they were added in the plugins
468-
attribute of any targets that directly depend on this target. Unlike java_plugins'
468+
attribute of any targets that directly depend on this target. Like java_plugins'
469469
exported_plugins, this is not transitive""",
470470
default = [],
471471
providers = [[_KtCompilerPluginInfo], [KtPluginConfiguration], [_KspPluginInfo]],

0 commit comments

Comments
 (0)