Skip to content

Commit 378c016

Browse files
titusfortnerjoerg1985
authored andcommitted
[java] remove netty http client and use native java client by default
1 parent d6c0c86 commit 378c016

File tree

11 files changed

+9
-805
lines changed

11 files changed

+9
-805
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ java_library(
5555
"//java/src/org/openqa/selenium/json",
5656
"//java/src/org/openqa/selenium/manager",
5757
"//java/src/org/openqa/selenium/os",
58-
"//java/src/org/openqa/selenium/remote/http/netty",
58+
"//java/src/org/openqa/selenium/remote/http/jdk",
5959
"//java/src/org/openqa/selenium/remote/tracing",
6060
"//java/src/org/openqa/selenium/remote/tracing/opentelemetry",
6161
"//java/src/org/openqa/selenium/support/decorators",

java/src/org/openqa/selenium/remote/http/HttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static Factory create(String name) {
7171
* <p>{@see create}
7272
*/
7373
static Factory createDefault() {
74-
return create(System.getProperty("webdriver.http.factory", "netty"));
74+
return create("jdk-http-client");
7575
}
7676

7777
/**

java/src/org/openqa/selenium/remote/http/jdk/BUILD.bazel

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
load("//java:defs.bzl", "java_export")
2-
load("//java:version.bzl", "SE_VERSION")
1+
load("@rules_jvm_external//:defs.bzl", "artifact")
2+
load("//java:defs.bzl", "java_library")
33

4-
java_export(
4+
java_library(
55
name = "jdk",
66
srcs = glob(["*.java"]),
7-
javacopts = [
8-
"--release",
9-
"11", # Deliberately targeting Java 11 for widest possible support
10-
],
11-
maven_coordinates = "org.seleniumhq.selenium:selenium-http-jdk-client:%s" % SE_VERSION,
12-
pom_template = "//java/src/org/openqa/selenium:template-pom",
137
visibility = [
14-
"//visibility:public",
8+
"//java/src/org/openqa/selenium/remote:__pkg__",
9+
"//java/test/org/openqa/selenium/remote/http:__subpackages__",
1510
],
1611
deps = [
1712
"//java:auto-service",

java/src/org/openqa/selenium/remote/http/netty/BUILD.bazel

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

java/src/org/openqa/selenium/remote/http/netty/NettyClient.java

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

0 commit comments

Comments
 (0)