-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bazel] Enough build files to build the new grid session map
- Loading branch information
Showing
20 changed files
with
535 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
java_library( | ||
name = "cli", | ||
srcs = glob(["*.java"]), | ||
deps = [ | ||
"//third_party/java/guava", | ||
], | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid:__subpackages__", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
java_binary( | ||
name = "selenium", | ||
main_class = "org.openqa.selenium.grid.Main", | ||
srcs = glob(["*.java"]), | ||
deps = [ | ||
"//java/server/src/org/openqa/selenium/cli", | ||
# "//java/client/src/org/openqa/selenium/chrome:chrome", | ||
# "//java/client/src/org/openqa/selenium/edge:edge", | ||
# "//java/client/src/org/openqa/selenium/firefox:firefox", | ||
# "//java/client/src/org/openqa/selenium/ie:ie", | ||
# "//java/client/src/org/openqa/selenium/safari:safari", | ||
# "//java/server/src/org/openqa/selenium/grid/commands:commands", | ||
# "//java/server/src/org/openqa/selenium/grid/distributor/httpd:httpd", | ||
# "//java/server/src/org/openqa/selenium/grid/node/httpd:httpd", | ||
# "//java/server/src/org/openqa/selenium/grid/router/httpd:httpd", | ||
"//java/server/src/org/openqa/selenium/grid/sessionmap/httpd", | ||
], | ||
visibility = [ | ||
], | ||
) |
7 changes: 7 additions & 0 deletions
7
java/server/src/org/openqa/selenium/grid/component/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
java_library( | ||
name = "component", | ||
srcs = glob(["*.java"]), | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid/server:__pkg__", | ||
], | ||
) |
10 changes: 10 additions & 0 deletions
10
java/server/src/org/openqa/selenium/grid/config/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
java_library( | ||
name = "config", | ||
srcs = glob(["*.java"]), | ||
deps = [ | ||
"//third_party/java/guava", | ||
], | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid:__subpackages__", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
java_library( | ||
name = "data", | ||
srcs = glob(["*.java"]), | ||
exports = [ | ||
# From public API of Session | ||
"//java/client/src/org/openqa/selenium/remote", | ||
], | ||
deps = [ | ||
"//java/client/src/org/openqa/selenium/remote", | ||
"//third_party/java/guava", | ||
], | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid:__subpackages__", | ||
], | ||
) |
28 changes: 28 additions & 0 deletions
28
java/server/src/org/openqa/selenium/grid/server/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
java_library( | ||
name = "server", | ||
srcs = glob(["*.java"]), | ||
exports = [ | ||
# Exported because Server implements HasLifecycle | ||
"//java/server/src/org/openqa/selenium/grid/component", | ||
|
||
# Exported because of Server.addRoute | ||
"//java/server/src/org/openqa/selenium/grid/web", | ||
], | ||
runtime_deps = [ | ||
"//third_party/java/servlet:javax.servlet-api", | ||
], | ||
deps = [ | ||
"//java/client/src/org/openqa/selenium/remote", | ||
"//java/server/src/org/openqa/selenium/grid/component", | ||
"//java/server/src/org/openqa/selenium/grid/config", | ||
"//java/server/src/org/openqa/selenium/grid/web", | ||
"//java/server/src/org/openqa/selenium/injector", | ||
"//third_party/java/beust:jcommander", | ||
"//third_party/java/guava", | ||
"//third_party/java/jetty", | ||
"//third_party/java/servlet:javax.servlet-api", # I think this is how to do this | ||
], | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid:__subpackages__", | ||
], | ||
) |
21 changes: 21 additions & 0 deletions
21
java/server/src/org/openqa/selenium/grid/sessionmap/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
java_library( | ||
name = "sessionmap", | ||
srcs = glob(["*.java"]), | ||
exports = [ | ||
# Exports "Session" from SessionMap api | ||
"//java/server/src/org/openqa/selenium/grid/data", | ||
|
||
# It's a command handler | ||
"//java/server/src/org/openqa/selenium/grid/web", | ||
], | ||
deps = [ | ||
"//java/server/src/org/openqa/selenium/injector", | ||
"//java/server/src/org/openqa/selenium/grid/config", | ||
"//java/server/src/org/openqa/selenium/grid/data", | ||
"//java/server/src/org/openqa/selenium/grid/web", | ||
"//third_party/java/guava", | ||
], | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid:__subpackages__", | ||
], | ||
) |
17 changes: 17 additions & 0 deletions
17
java/server/src/org/openqa/selenium/grid/sessionmap/httpd/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
java_library( | ||
name = "httpd", | ||
srcs = glob(["*.java"]), | ||
deps = [ | ||
"//java/client/src/org/openqa/selenium/remote/tracing", | ||
"//java/server/src/org/openqa/selenium/cli", | ||
"//java/server/src/org/openqa/selenium/grid/config", | ||
"//java/server/src/org/openqa/selenium/grid/server", | ||
"//java/server/src/org/openqa/selenium/grid/sessionmap", | ||
"//java/server/src/org/openqa/selenium/grid/sessionmap/local", | ||
"//third_party/java/beust:jcommander", | ||
"//third_party/java/service", | ||
], | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid:__pkg__", | ||
], | ||
) |
10 changes: 10 additions & 0 deletions
10
java/server/src/org/openqa/selenium/grid/sessionmap/local/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
java_library( | ||
name = "local", | ||
srcs = glob(["*.java"]), | ||
deps = [ | ||
"//java/server/src/org/openqa/selenium/grid/sessionmap", | ||
], | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid:__subpackages__", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
java_library( | ||
name = "web", | ||
srcs = glob(["*.java"]), | ||
exports = [ | ||
# Part of the CommandHandler API | ||
"//java/client/src/org/openqa/selenium/remote", | ||
], | ||
deps = [ | ||
"//java/client/src/org/openqa/selenium/remote", | ||
"//java/server/src/org/openqa/selenium/injector", | ||
"//third_party/java/guava", | ||
], | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid:__subpackages__", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
java_library( | ||
name = "injector", | ||
srcs = glob(["*.java"]), | ||
deps = [ | ||
"//third_party/java/guava", | ||
], | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium:__subpackages__", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
java_import( | ||
name = "asm", | ||
tags = [ | ||
"maven_coordinates=org.ow2.asm:asm:jar:6.0", | ||
], | ||
licenses = [ | ||
"notice", # BSD | ||
], | ||
jars = ["asm-6.0.jar"], | ||
srcjar = "asm-6.0-sources.jar", | ||
visibility = [ | ||
"//third_party/java/pantsbuild:__pkg__", | ||
], | ||
) | ||
|
||
java_import( | ||
name = "asm-commons", | ||
tags = [ | ||
"maven_coordinates=org.ow2.asm:asm-commons:jar:6.0", | ||
], | ||
licenses = [ | ||
"notice", # BSD | ||
], | ||
jars = ["asm-commons-6.0.jar"], | ||
srcjar = "asm-commons-6.0-sources.jar", | ||
deps = [ | ||
":asm-tree", | ||
], | ||
visibility = [ | ||
"//third_party/java/pantsbuild:__pkg__", | ||
], | ||
) | ||
|
||
java_import( | ||
name = "asm-tree", | ||
tags = [ | ||
"maven_coordinates=org.ow2.asm:asm-tree:jar:6.0", | ||
], | ||
licenses = [ | ||
"notice", # BSD | ||
], | ||
jars = ["asm-tree-6.0.jar"], | ||
srcjar = "asm-tree-6.0-sources.jar", | ||
deps = [ | ||
":asm", | ||
], | ||
visibility = [ | ||
"//third_party/java/pantsbuild:__pkg__", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
java_import( | ||
name = "auto-common", | ||
tags = [ | ||
"maven_coordinates=com.google.auto:auto-common:jar:0.8", | ||
], | ||
licenses = [ | ||
"notice", # Apache 2 | ||
], | ||
jars = ["auto-common-0.8.jar"], | ||
srcjar = "auto-common-0.8-sources.jar", | ||
deps = [ | ||
"//third_party/java/guava", | ||
], | ||
visibility = [ | ||
"//third_party/java/service:__pkg__", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
java_import( | ||
name = "jcommander", | ||
tags = [ | ||
"maven_coordinates=com.beust:jcommander:jar:1.72", | ||
], | ||
licenses = [ | ||
"notice", # Apache 2 | ||
], | ||
jars = ["jcommander-1.72.jar"], | ||
srcjar = "jcommander-1.72-sources.jar", | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid:__subpackages__", | ||
], | ||
) |
Oops, something went wrong.