Skip to content

Commit

Permalink
[bazel] Add targets for grid and rc emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Aug 3, 2019
1 parent 3b25b65 commit e54e2d9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ filegroup(

alias(
name = "grid",
actual = "//java/server/src/org/openqa/selenium/grid:grid_deploy.jar",
actual = "//java/server/src/org/openqa/selenium/grid:selenium_server_deploy.jar",
)
2 changes: 2 additions & 0 deletions java/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ maven_jars(
"//java/client/src/org/openqa/selenium/opera",
"//java/client/src/org/openqa/selenium/safari",
"//java/client/src/org/openqa/selenium/remote",
"//java/server/src/org/openqa/selenium/grid",
"//java/server/src/com/thoughtworks/selenium/webdriven",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ java_library(
"maven_coordinates=org.seleniumhq.selenium:selenium-leg-rc:%s" % SE_VERSION,
],
visibility = [
"//java/server/test/com/thoughtworks/selenium/webdriven:__pkg__",
"//visibility:public",
],
deps = [
"//java/client/src/com/thoughtworks/selenium",
Expand Down
18 changes: 15 additions & 3 deletions java/server/src/org/openqa/selenium/grid/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
java_binary(
load("//java:version.bzl", "SE_VERSION")

java_library(
name = "grid",
srcs = glob(["*.java"]),
main_class = "org.openqa.selenium.grid.Main",
tags = [
"maven_coordinates=org.seleniumhq.selenium:selenium-grid:%s" % SE_VERSION,
],
visibility = [
"//:__pkg__",
"//visibility:public",
],
runtime_deps = [
"//java/client/src/org/openqa/selenium/chrome",
Expand All @@ -23,3 +27,11 @@ java_binary(
"//java/server/src/org/openqa/selenium/cli",
],
)

java_binary(
name = "selenium_server",
main_class = "org.openqa.selenium.grid.Main",
runtime_deps = [
":grid",
]
)

0 comments on commit e54e2d9

Please sign in to comment.