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
@@ -60,6 +61,8 @@ It is appropriate for building workspace utilities. `java_binary` should be pref
60
61
| <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 |`[]`|
61
62
| <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 |`[]`|
62
63
| <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 |`[]`|
64
+
| <aid="kt_jvm_binary-experimental_report_unused_deps"></a>experimental_report_unused_deps | Report unused dependencies If set, overrides the global setting for this target. | String | optional |`""`|
65
+
| <aid="kt_jvm_binary-experimental_unused_deps_ignored_targets"></a>experimental_unused_deps_ignored_targets | Unused dependencies ignored targets. Targets listed here will not be reported as unused dependencies, even if they are not used by the target. | <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`|
65
68
| <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 |`[]`|
@@ -155,6 +159,8 @@ This rule compiles and links Kotlin and Java sources into a .jar file.
155
159
| <aid="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). | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
156
160
| <aid="kt_jvm_library-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 |`[]`|
157
161
| <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 |`[]`|
162
+
| <aid="kt_jvm_library-experimental_report_unused_deps"></a>experimental_report_unused_deps | Report unused dependencies If set, overrides the global setting for this target. | String | optional |`""`|
163
+
| <aid="kt_jvm_library-experimental_unused_deps_ignored_targets"></a>experimental_unused_deps_ignored_targets | Unused dependencies ignored targets. Targets listed here will not be reported as unused dependencies, even if they are not used by the target. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
158
164
| <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 |`[]`|
159
165
| <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_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 |`[]`|
199
206
| <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 |`[]`|
200
207
| <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 |`{}`|
208
+
| <aid="kt_jvm_test-experimental_report_unused_deps"></a>experimental_report_unused_deps | Report unused dependencies If set, overrides the global setting for this target. | String | optional |`""`|
209
+
| <aid="kt_jvm_test-experimental_unused_deps_ignored_targets"></a>experimental_unused_deps_ignored_targets | Unused dependencies ignored targets. Targets listed here will not be reported as unused dependencies, even if they are not used by the target. | <ahref="https://bazel.build/concepts/labels">List of labels</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`|
203
212
| <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 |`[]`|
| <aid="kt_kotlinc_options-x_jdk_release"></a>x_jdk_release | Compile against the specified JDK API version, similarly to javac's '-release'. This requires JDK 9 or newer. The supported versions depend on the JDK used; for JDK 17+, the supported versions are 1.8 and 9â21. This also sets the value of '-jvm-target' to be equal to the selected JDK version. | String | optional |`""`|
425
+
| <aid="kt_kotlinc_options-x_jdk_release"></a>x_jdk_release | Compile against the specified JDK API version, similarly to javac's '-release'. This requires JDK 9 or newer. The supported versions depend on the JDK used; for JDK 17+, the supported versions are 1.8 and 9–21. This also sets the value of '-jvm-target' to be equal to the selected JDK version. | String | optional |`""`|
417
426
| <aid="kt_kotlinc_options-x_jspecify_annotations"></a>x_jspecify_annotations | Controls how JSpecify annotations are treated. Options are 'default', 'ignore', 'warn', and 'strict'. | String | optional |`""`|
418
427
| <aid="kt_kotlinc_options-x_jsr_305"></a>x_jsr_305 | Specifies how to handle JSR-305 annotations in Kotlin code. Options are 'default', 'ignore', 'warn', and 'strict'. | String | optional |`""`|
419
428
| <aid="kt_kotlinc_options-x_jvm_default"></a>x_jvm_default | Specifies that a JVM default method should be generated for non-abstract Kotlin interface member. | String | optional |`"off"`|
@@ -598,7 +607,7 @@ Call this in the WORKSPACE file to setup the Kotlin rules.
0 commit comments