1
1
load ("@rules_jvm_external//:defs.bzl" , "artifact" )
2
2
load ("//common:defs.bzl" , "copy_file" )
3
- load ("//java:defs.bzl" , "java_binary" , "java_export" , "java_library" )
4
- load ("//java:version.bzl" , "SE_VERSION" )
3
+ load ("//java:defs.bzl" , "java_binary" , "java_library" )
5
4
6
5
GENERATOR_SOURCES = [
7
6
"CdpClientGenerator.java" ,
@@ -33,7 +32,25 @@ copy_file(
33
32
out = "mutation-listener.js" ,
34
33
)
35
34
36
- java_export (
35
+ AUGMENTER_SRCS = [
36
+ "DevToolsProvider.java" ,
37
+ ]
38
+
39
+ java_library (
40
+ name = "augmenter" ,
41
+ srcs = AUGMENTER_SRCS ,
42
+ visibility = [
43
+ "//java/src/org/openqa/selenium/remote:__pkg__" ,
44
+ ],
45
+ deps = [
46
+ ":devtools" ,
47
+ "//java:auto-service" ,
48
+ "//java/src/org/openqa/selenium:core" ,
49
+ "//java/src/org/openqa/selenium/remote:api" ,
50
+ ],
51
+ )
52
+
53
+ java_library (
37
54
name = "devtools" ,
38
55
srcs = glob (
39
56
[
@@ -42,18 +59,13 @@ java_export(
42
59
"idealized/**/*.java" ,
43
60
"noop/*.java" ,
44
61
],
45
- exclude = PROTOTYPE_SOURCES + GENERATOR_SOURCES ,
62
+ exclude = AUGMENTER_SRCS + GENERATOR_SOURCES + PROTOTYPE_SOURCES ,
46
63
),
47
- maven_coordinates = "org.seleniumhq.selenium:selenium-devtools:%s" % SE_VERSION ,
48
- opens_to = [
49
- "org.openqa.selenium.json" ,
50
- ],
51
- pom_template = "//java/src/org/openqa/selenium:template-pom" ,
52
64
resources = [
53
65
":mutation-listener" ,
54
66
],
55
67
visibility = [
56
- "//visibility:public " ,
68
+ "//java/src/org/openqa/selenium/remote:__pkg__ " ,
57
69
],
58
70
exports = [
59
71
":devtools-prototypes" ,
@@ -63,7 +75,7 @@ java_export(
63
75
"//java:auto-service" ,
64
76
"//java/src/org/openqa/selenium:core" ,
65
77
"//java/src/org/openqa/selenium/json" ,
66
- "//java/src/org/openqa/selenium/remote" ,
78
+ "//java/src/org/openqa/selenium/remote/http " ,
67
79
artifact ("com.google.guava:guava" ),
68
80
],
69
81
)
0 commit comments