Skip to content

Commit

Permalink
[bazel] Restore javadoc targets
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Apr 18, 2024
1 parent 8d6c077 commit 6831e8e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
6 changes: 6 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ use_repo(pip, "py_dev_requirements")

register_toolchains("@pythons_hub//:all")

single_version_override(
module_name = "rules_jvm_external",
patches = ["//java:rules_jvm_external_javadoc.patch"],
patch_strip = 1,
)

java_toolchains = use_extension("@rules_java//java:extensions.bzl", "toolchains")
use_repo(
java_toolchains,
Expand Down
14 changes: 13 additions & 1 deletion java/src/org/openqa/selenium/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//java:defs.bzl", "java_dist_zip", "java_export", "java_import")
load("//java:defs.bzl", "java_dist_zip", "java_export", "java_import", "javadoc")
load("//java:version.bzl", "SE_VERSION")
load("//java/src/org/openqa/selenium/devtools:versions.bzl", "CDP_DEPS")

Expand Down Expand Up @@ -71,6 +71,18 @@ java_dist_zip(
],
)

javadoc(
name = "client-javadoc",
third_party_prefixes = [
"@",
"//third_party",
] + CDP_DEPS,
transitive = True,
deps = [
":client-combined",
],
)

java_import(
name = "manifest",
jars = [
Expand Down
15 changes: 15 additions & 0 deletions java/src/org/openqa/selenium/grid/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ load(
"java_dist_zip",
"java_export",
"java_library",
"javadoc",
"merge_jars",
)
load("//java:version.bzl", "SE_VERSION")
load("//java/src/org/openqa/selenium/devtools:versions.bzl", "CDP_DEPS")

genrule(
name = "executable-grid",
Expand Down Expand Up @@ -208,3 +210,16 @@ java_dist_zip(
":grid",
],
)

javadoc(
name = "all-javadocs",
third_party_prefixes = [
"@",
"//third_party",
] + CDP_DEPS,
transitive = True,
deps = [
":grid",
"//java/src/org/openqa/selenium:client-combined",
],
)

0 comments on commit 6831e8e

Please sign in to comment.