Skip to content

Commit 87db0cb

Browse files
committed
Simplify the remote build file
1 parent 7113b47 commit 87db0cb

File tree

2 files changed

+7
-149
lines changed

2 files changed

+7
-149
lines changed

java/client/src/org/openqa/selenium/remote/BUILD.bazel

+7-134
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,18 @@ load("//common:defs.bzl", "copy_file")
33
load("//java:defs.bzl", "java_dist_zip", "java_export", "java_library")
44
load("//java:version.bzl", "SE_VERSION")
55

6-
java_library(
7-
name = "api",
8-
srcs = [
9-
"Augmentable.java",
10-
"Command.java",
11-
"CommandExecutor.java",
12-
"CommandPayload.java",
13-
"ErrorCodes.java",
14-
"Response.java",
15-
"ScreenshotException.java",
16-
"SessionId.java",
17-
],
18-
visibility = [
19-
"//java/client/src/org/openqa/selenium/json:__pkg__",
20-
],
21-
deps = [
22-
"//java/client/src/org/openqa/selenium:core",
23-
"//java/client/src/org/openqa/selenium/json",
24-
artifact("com.google.guava:guava"),
25-
],
26-
)
27-
28-
java_library(
29-
name = "capabilities",
30-
srcs = [
31-
"BrowserType.java",
32-
"CapabilityType.java",
33-
"DesiredCapabilities.java",
34-
],
35-
visibility = [
36-
"//java/client/src/org/openqa/selenium/remote/session:__pkg__",
37-
],
38-
deps = [
39-
"//java/client/src/org/openqa/selenium:core",
40-
],
41-
)
42-
43-
java_library(
44-
name = "http-session-id",
45-
srcs = ["HttpSessionId.java"],
46-
)
47-
486
java_export(
497
name = "remote",
50-
srcs = [
51-
"RemoteTags.java",
52-
],
8+
srcs = glob(["**/*.java"]),
539
hides = [
5410
"org.openqa.selenium.remote.internal",
5511
],
5612
maven_coordinates = "org.seleniumhq.selenium:selenium-remote-driver:%s" % SE_VERSION,
5713
pom_template = "//java/client/src/org/openqa/selenium:template-pom",
14+
resources = [
15+
":get-attribute",
16+
":is-displayed",
17+
],
5818
uses = [
5919
"org.openqa.selenium.remote.AugmenterProvider",
6020
"org.openqa.selenium.remote.session.CapabilitiesFilter",
@@ -63,10 +23,6 @@ java_export(
6323
],
6424
visibility = ["//visibility:public"],
6525
exports = [
66-
":api",
67-
":capabilities",
68-
":http-session-id",
69-
":remote-lib",
7026
"//java/client/src/org/openqa/selenium:core",
7127
"//java/client/src/org/openqa/selenium/io",
7228
"//java/client/src/org/openqa/selenium/os",
@@ -75,100 +31,17 @@ java_export(
7531
"//java/client/src/org/openqa/selenium/remote/tracing",
7632
"//java/client/src/org/openqa/selenium/remote/tracing/opentelemetry",
7733
],
78-
runtime_deps = [
79-
":api",
80-
":capabilities",
81-
":remote-lib",
34+
deps = [
8235
"//java/client/src/org/openqa/selenium:core",
8336
"//java/client/src/org/openqa/selenium/io",
37+
"//java/client/src/org/openqa/selenium/json",
8438
"//java/client/src/org/openqa/selenium/os",
8539
"//java/client/src/org/openqa/selenium/remote/http/netty",
8640
"//java/client/src/org/openqa/selenium/remote/http/reactor",
8741
"//java/client/src/org/openqa/selenium/remote/tracing",
8842
artifact("com.google.guava:guava"),
8943
artifact("net.bytebuddy:byte-buddy"),
9044
],
91-
deps = [
92-
"//java/client/src/org/openqa/selenium:core",
93-
"//java/client/src/org/openqa/selenium/remote:api",
94-
"//java/client/src/org/openqa/selenium/remote/tracing",
95-
],
96-
)
97-
98-
java_library(
99-
name = "remote-lib",
100-
srcs = [
101-
"AbstractDriverOptions.java",
102-
"AcceptedW3CCapabilityKeys.java",
103-
"AddWebDriverSpecHeaders.java",
104-
"AddRotatable.java",
105-
"Augmenter.java",
106-
"AugmenterProvider.java",
107-
"CommandCodec.java",
108-
"CommandInfo.java",
109-
"Dialect.java",
110-
"DriverCommand.java",
111-
"ErrorCodec.java",
112-
"ErrorFilter.java",
113-
"ErrorHandler.java",
114-
"ExecuteMethod.java",
115-
"FileDetector.java",
116-
"HandshakeResponse.java",
117-
"HttpCommandExecutor.java",
118-
"InitialHandshakeResponse.java",
119-
"JsonToWebElementConverter.java",
120-
"JsonWireProtocolResponse.java",
121-
"LocalFileDetector.java",
122-
"NewSessionPayload.java",
123-
"ProtocolHandshake.java",
124-
"RemoteExecuteMethod.java",
125-
"RemoteKeyboard.java",
126-
"RemoteLogs.java",
127-
"RemoteMouse.java",
128-
"RemoteRotatable.java",
129-
"RemoteStatus.java",
130-
"RemoteTouchScreen.java",
131-
"RemoteWebDriver.java",
132-
"RemoteWebDriverBuilder.java",
133-
"RemoteWebElement.java",
134-
"ResponseCodec.java",
135-
"UnreachableBrowserException.java",
136-
"UselessFileDetector.java",
137-
"W3CHandshakeResponse.java",
138-
"html5/AddApplicationCache.java",
139-
"html5/AddLocationContext.java",
140-
"html5/AddWebStorage.java",
141-
"html5/RemoteApplicationCache.java",
142-
"html5/RemoteLocalStorage.java",
143-
"html5/RemoteLocationContext.java",
144-
"html5/RemoteSessionStorage.java",
145-
"html5/RemoteWebStorage.java",
146-
"mobile/AddNetworkConnection.java",
147-
"mobile/RemoteNetworkConnection.java",
148-
] + glob([
149-
"codec/*.java",
150-
"codec/jwp/*.java",
151-
"codec/w3c/*.java",
152-
"internal/*.java",
153-
"service/*.java",
154-
]),
155-
resources = [
156-
":get-attribute",
157-
":is-displayed",
158-
],
159-
deps = [
160-
":api",
161-
":capabilities",
162-
":http-session-id",
163-
"//java/client/src/org/openqa/selenium:core",
164-
"//java/client/src/org/openqa/selenium/io",
165-
"//java/client/src/org/openqa/selenium/json",
166-
"//java/client/src/org/openqa/selenium/os",
167-
"//java/client/src/org/openqa/selenium/remote/http",
168-
"//java/client/src/org/openqa/selenium/remote/session",
169-
artifact("com.google.guava:guava"),
170-
artifact("net.bytebuddy:byte-buddy"),
171-
],
17245
)
17346

17447
copy_file(

java/client/src/org/openqa/selenium/remote/session/BUILD.bazel

-15
This file was deleted.

0 commit comments

Comments
 (0)