Skip to content

Commit

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

register_toolchains("@pythons_hub//:all")

single_version_override(
# https://github.com/bazelbuild/rules_jvm_external/pull/1079
archive_override(
module_name = "rules_jvm_external",
patches = ["//java:rules_jvm_external_javadoc.patch"],
integrity = "sha256-yS8Qes1PLbYbe10b1WSgl0Auqn/1Wlxg8O3wSr7a/Sg=",
patch_strip = 1,
patches = ["//java:rules_jvm_external_javadoc.patch"],
strip_prefix = "rules_jvm_external-f572a26116c7ef71d8842dd056c2605782f7be8d",
urls = ["https://github.com/bazelbuild/rules_jvm_external/archive/f572a26116c7ef71d8842dd056c2605782f7be8d.tar.gz"],
)

java_toolchains = use_extension("@rules_java//java:extensions.bzl", "toolchains")
Expand Down
55 changes: 28 additions & 27 deletions java/src/org/openqa/selenium/grid/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ load(
"java_export",
"java_library",
"javadoc",
"maven_bom",
"merge_jars",
)
load("//java:version.bzl", "SE_VERSION")
Expand Down Expand Up @@ -90,33 +91,33 @@ java_library(
],
)

# # Generated from: bazel query 'kind(maven_publish, set(//java/... //third_party/...))' | sort
# # with the selenium rc, bom dependencies (naturally), and CDP implementations removed.
# maven_bom(
# name = "bom",
# bom_pom_template = "bom-pom-template.xml",
# dependencies_maven_coordinates = "org.seleniumhq.selenium:selenium-dependencies-bom:%s" % SE_VERSION,
# dependencies_pom_template = "bom-pom-template.xml",
# java_exports = [
# "//java/src/org/openqa/selenium/chrome:chrome",
# "//java/src/org/openqa/selenium/chromium:chromium",
# "//java/src/org/openqa/selenium/edge:edge",
# "//java/src/org/openqa/selenium/firefox:firefox",
# "//java/src/org/openqa/selenium/grid/sessionmap/jdbc:jdbc",
# "//java/src/org/openqa/selenium/grid/sessionmap/redis:redis",
# "//java/src/org/openqa/selenium/grid:grid",
# "//java/src/org/openqa/selenium/ie:ie",
# "//java/src/org/openqa/selenium/json:json",
# "//java/src/org/openqa/selenium/manager:manager",
# "//java/src/org/openqa/selenium/remote/http:http",
# "//java/src/org/openqa/selenium/remote:remote",
# "//java/src/org/openqa/selenium/safari:safari",
# "//java/src/org/openqa/selenium/support:support",
# "//java/src/org/openqa/selenium:client-combined",
# "//java/src/org/openqa/selenium:core",
# ] + CDP_DEPS,
# maven_coordinates = "org.seleniumhq.selenium:selenium-bom:%s" % SE_VERSION,
# )
# Generated from: bazel query 'kind(maven_publish, set(//java/... //third_party/...))' | sort
# with the selenium rc, bom dependencies (naturally), and CDP implementations removed.
maven_bom(
name = "bom",
bom_pom_template = "bom-pom-template.xml",
dependencies_maven_coordinates = "org.seleniumhq.selenium:selenium-dependencies-bom:%s" % SE_VERSION,
dependencies_pom_template = "bom-pom-template.xml",
java_exports = [
"//java/src/org/openqa/selenium/chrome:chrome",
"//java/src/org/openqa/selenium/chromium:chromium",
"//java/src/org/openqa/selenium/edge:edge",
"//java/src/org/openqa/selenium/firefox:firefox",
"//java/src/org/openqa/selenium/grid/sessionmap/jdbc:jdbc",
"//java/src/org/openqa/selenium/grid/sessionmap/redis:redis",
"//java/src/org/openqa/selenium/grid:grid",
"//java/src/org/openqa/selenium/ie:ie",
"//java/src/org/openqa/selenium/json:json",
"//java/src/org/openqa/selenium/manager:manager",
"//java/src/org/openqa/selenium/remote/http:http",
"//java/src/org/openqa/selenium/remote:remote",
"//java/src/org/openqa/selenium/safari:safari",
"//java/src/org/openqa/selenium/support:support",
"//java/src/org/openqa/selenium:client-combined",
"//java/src/org/openqa/selenium:core",
] + CDP_DEPS,
maven_coordinates = "org.seleniumhq.selenium:selenium-bom:%s" % SE_VERSION,
)

java_export(
name = "grid",
Expand Down

0 comments on commit 4d29ac9

Please sign in to comment.