You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Builds a Java archive ("jar file"), plus a wrapper shell script with the same name as the rule. The wrapper
@@ -59,6 +60,7 @@ It is appropriate for building workspace utilities. `java_binary` should be pref
59
60
| <aid="kt_jvm_binary-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). | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
60
61
| <aid="kt_jvm_binary-resources"></a>resources | A list of files that should be include in a Java jar. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
61
62
| <aid="kt_jvm_binary-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. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
| <aid="kt_jvm_binary-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. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
63
65
| <aid="kt_jvm_binary-jvm_flags"></a>jvm_flags | A list of flags to embed in the wrapper script generated for running this binary. Note: does not yet support make variable substitution. | List of strings | optional |`[]`|
64
66
| <aid="kt_jvm_binary-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. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
This rule compiles and links Kotlin and Java sources into a .jar file.
@@ -155,6 +157,7 @@ This rule compiles and links Kotlin and Java sources into a .jar file.
155
157
| <aid="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. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
156
158
| <aid="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 | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
157
159
| <aid="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. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
| <aid="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. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
159
162
| <aid="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. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
160
163
| <aid="kt_jvm_library-module_name"></a>module_name | The name of the module, if not provided the module name is derived from the label. --e.g., `//some/package/path:label_name` is translated to `some_package_path-label_name`. | String | optional |`""`|
@@ -172,9 +175,9 @@ This rule compiles and links Kotlin and Java sources into a .jar file.
| <aid="kt_jvm_test-resources"></a>resources | A list of files that should be include in a Java jar. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
196
199
| <aid="kt_jvm_test-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. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
197
200
| <aid="kt_jvm_test-env"></a>env | Specifies additional environment variables to set when the target is executed by bazel test. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
| <aid="kt_jvm_test-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. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
199
203
| <aid="kt_jvm_test-jvm_flags"></a>jvm_flags | A list of flags to embed in the wrapper script generated for running this binary. Note: does not yet support make variable substitution. | List of strings | optional |`[]`|
200
204
| <aid="kt_jvm_test-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. | <ahref="https://bazel.build/concepts/labels">Label</a> | optional |`None`|
0 commit comments