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
@@ -32,8 +33,11 @@ Generate a javadoc from all the `deps`
32
33
| <aid="javadoc-deps"></a>deps | The java libraries to generate javadocs for.<br><br>The source jars of each dep will be used to generate the javadocs. Currently docs for transitive dependencies are not generated. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | required ||
33
34
| <aid="javadoc-additional_dependencies"></a>additional_dependencies | Mapping of `Label`s to the excluded workspace names. Note that this must match the values passed to the `pom_file` rule so the `pom.xml` correctly lists these dependencies. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: Label -> String</a> | optional |`{}`|
34
35
| <aid="javadoc-doc_deps"></a>doc_deps |`javadoc` targets referenced by the current target.<br><br>Use this to automatically add appropriate `-linkoffline` javadoc options to resolve references to packages documented by the given javadoc targets that have `url` specified. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
36
+
| <aid="javadoc-doc_resources"></a>doc_resources | Resources to include in the javadoc jar. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
35
37
| <aid="javadoc-doc_url"></a>doc_url | The URL at which this documentation will be hosted.<br><br>This information is only used by javadoc targets depending on this target. | String | optional |`""`|
38
+
| <aid="javadoc-excluded_packages"></a>excluded_packages | A list of packages to exclude from the generated javadoc. Wildcards are supported at the end of the package name. For example, `com.example.*` will exclude all the subpackages of `com.example`, while `com.example` will exclude only the files directly in `com.example`. | List of strings | optional |`[]`|
36
39
| <aid="javadoc-excluded_workspaces"></a>excluded_workspaces | A list of bazel workspace names to exclude from the generated jar | List of strings | optional |`["com_google_protobuf", "protobuf"]`|
40
+
| <aid="javadoc-included_packages"></a>included_packages | A list of packages to include in the generated javadoc. Wildcards are supported at the end of the package name. For example, `com.example.*` will include all the subpackages of `com.example`, while `com.example` will include only the files directly in `com.example`. | List of strings | optional |`[]`|
37
41
| <aid="javadoc-javadocopts"></a>javadocopts | javadoc options. Note sources and classpath are derived from the deps. Any additional options can be passed here. If nothing is passed, a default list of options is used: ["-notimestamp", "-use", "-quiet", "-Xdoclint:-missing", "-encoding", "UTF8"]| List of strings | optional |`["-notimestamp", "-use", "-quiet", "-Xdoclint:-missing", "-encoding", "UTF8"]`|
38
42
39
43
@@ -44,8 +48,9 @@ Generate a javadoc from all the `deps`
Extends `java_library` to allow maven artifacts to be uploaded.
@@ -101,11 +106,13 @@ Generated rules:
101
106
| <aid="java_export-manifest_entries"></a>manifest_entries | A dict of `String: String` containing additional manifest entry attributes and values. |`{}`|
102
107
| <aid="java_export-deploy_env"></a>deploy_env | A list of labels of Java targets to exclude from the generated jar. [`java_binary`](https://bazel.build/reference/be/java#java_binary) targets are *not* supported. |`[]`|
103
108
| <aid="java_export-excluded_workspaces"></a>excluded_workspaces | A dict of strings representing the workspace names of artifacts that should not be included in the maven jar to a `Label` pointing to the dependency that workspace should be replaced by, or `None` if the exclusion shouldn't be replaced with an extra dependency. |`{"com_google_protobuf": None, "protobuf": None}`|
109
+
| <aid="java_export-exclusions"></a>exclusions | Mapping of target labels to a list of exclusions to be added to the POM file. Each label must correspond to a direct maven dependency of this target. Each exclusion is represented as a `group:artifact` string. |`{}`|
104
110
| <aid="java_export-pom_template"></a>pom_template | The template to be used for the pom.xml file. |`None`|
105
111
| <aid="java_export-visibility"></a>visibility | The visibility of the target |`None`|
| <aid="java_export-classifier_artifacts"></a>classifier_artifacts | A dict of classifier -> artifact of additional artifacts to publish to Maven. |`{}`|
115
+
| <aid="java_export-publish_maven_metadata"></a>publish_maven_metadata | Whether to publish a maven-metadata.xml and so may contain any valid parameter for that rule. |`True`|
0 commit comments