Skip to content

Commit f00998e

Browse files
committed
Hook java CDP generation into the build
1 parent d45ec36 commit f00998e

File tree

108 files changed

+120
-11238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+120
-11238
lines changed

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

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,47 @@ load("@rules_jvm_external//:defs.bzl", "artifact")
22
load("//java:defs.bzl", "java_export")
33
load("//java:version.bzl", "SE_VERSION")
44

5+
PROTOTYPE_SOURCES = [
6+
"Command.java",
7+
"ConverterFunctions.java",
8+
"DevToolsException.java",
9+
"Event.java",
10+
]
11+
12+
java_library(
13+
name = "devtools-prototypes",
14+
srcs = PROTOTYPE_SOURCES,
15+
visibility = [
16+
"//java/client/src/org/openqa/selenium/tools/cdp:__pkg__",
17+
],
18+
deps = [
19+
"//java/client/src/org/openqa/selenium:core",
20+
"//java/client/src/org/openqa/selenium/json",
21+
artifact("com.google.guava:guava"),
22+
],
23+
)
24+
525
java_export(
626
name = "devtools",
7-
srcs = glob(["**/*.java"]),
27+
srcs = glob(
28+
["*.java"],
29+
exclude = PROTOTYPE_SOURCES,
30+
),
831
maven_coordinates = "org.seleniumhq.selenium:selenium-devtools:%s" % SE_VERSION,
932
pom_template = "//java/client/src/org/openqa/selenium:template-pom",
1033
visibility = [
1134
"//visibility:public",
1235
],
36+
exports = [
37+
":devtools-prototypes",
38+
"//java/client/src/org/openqa/selenium/tools/cdp",
39+
],
1340
deps = [
41+
":devtools-prototypes",
1442
"//java/client/src/org/openqa/selenium:core",
1543
"//java/client/src/org/openqa/selenium/json",
1644
"//java/client/src/org/openqa/selenium/remote",
45+
"//java/client/src/org/openqa/selenium/tools/cdp",
1746
artifact("com.google.guava:guava"),
1847
],
1948
)

java/client/src/org/openqa/selenium/devtools/applicationcache/ApplicationCache.java

Lines changed: 0 additions & 79 deletions
This file was deleted.

java/client/src/org/openqa/selenium/devtools/applicationcache/model/ApplicationCacheModel.java

Lines changed: 0 additions & 110 deletions
This file was deleted.

java/client/src/org/openqa/selenium/devtools/applicationcache/model/ApplicationCacheResource.java

Lines changed: 0 additions & 57 deletions
This file was deleted.

java/client/src/org/openqa/selenium/devtools/applicationcache/model/ApplicationCacheStatusUpdated.java

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)