Skip to content

Commit

Permalink
[cdp] Include supported CDP versions in the Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Feb 7, 2021
1 parent d1b21d0 commit b0b8382
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
12 changes: 2 additions & 10 deletions java/client/src/org/openqa/selenium/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
load("//java:version.bzl", "SE_VERSION")
load("//java:defs.bzl", "java_dist_zip", "java_export", "java_import", "java_library", "javadoc")

CDP_VERSIONS = [
"v86",
"v87",
"v88",
"v89",
]
load("//java/client/src/org/openqa/selenium/devtools:versions.bzl", "CDP_DEPS")

filegroup(
name = "template-pom",
Expand All @@ -31,10 +25,10 @@ java_export(
"org.openqa.selenium.interactions.internal",
"org.openqa.selenium.internal",
],
maven_coordinates = "org.seleniumhq.selenium:selenium-api:%s" % SE_VERSION,
opens_to = [
"org.openqa.selenium.json",
],
maven_coordinates = "org.seleniumhq.selenium:selenium-api:%s" % SE_VERSION,
pom_template = ":template-pom",
visibility = ["//visibility:public"],
deps = [
Expand All @@ -43,8 +37,6 @@ java_export(
],
)

CDP_DEPS = ["//java/client/src/org/openqa/selenium/devtools/%s" % v for v in CDP_VERSIONS]

java_export(
name = "client-combined",
maven_coordinates = "org.seleniumhq.selenium:selenium-java:" + SE_VERSION,
Expand Down
8 changes: 8 additions & 0 deletions java/client/src/org/openqa/selenium/devtools/versions.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CDP_VERSIONS = [
"v86",
"v87",
"v88",
"v89",
]

CDP_DEPS = ["//java/client/src/org/openqa/selenium/devtools/%s" % v for v in CDP_VERSIONS]
9 changes: 5 additions & 4 deletions java/server/src/org/openqa/selenium/grid/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ load("@rules_jvm_external//:defs.bzl", "artifact")
load("//common:defs.bzl", "copy_file")
load("//java:defs.bzl", "java_binary", "java_dist_zip", "java_export", "java_library", "javadoc")
load("//java:version.bzl", "SE_VERSION")
load("//java/client/src/org/openqa/selenium/devtools:versions.bzl", "CDP_DEPS")

genrule(
name = "executable-grid",
Expand Down Expand Up @@ -49,6 +50,9 @@ java_export(
exclude = BASE_COMMAND_SRCS,
),
maven_coordinates = "org.seleniumhq.selenium:selenium-grid:%s" % SE_VERSION,
opens_to = [
"org.openqa.selenium.json",
],
pom_template = "//java/client/src/org/openqa/selenium:template-pom",
resource_jars = [
"//javascript/grid-ui:react_jar",
Expand All @@ -60,9 +64,6 @@ java_export(
"org.openqa.selenium.remote.locators.CustomLocator",
"org.openqa.selenium.remote.service.DriverService$Builder",
],
opens_to = [
"org.openqa.selenium.json",
],
visibility = [
"//visibility:public",
],
Expand All @@ -81,7 +82,7 @@ java_export(
"//java/server/src/org/openqa/selenium/grid/router/httpd",
"//java/server/src/org/openqa/selenium/grid/sessionmap/httpd",
"//java/server/src/org/openqa/selenium/grid/sessionqueue/httpd",
],
] + CDP_DEPS,
deps = [
":base-command",
"//java/server/src/org/openqa/selenium/cli",
Expand Down

0 comments on commit b0b8382

Please sign in to comment.