Skip to content

Commit

Permalink
[java] Updating HtmlUnit and the corresponding driver.
Browse files Browse the repository at this point in the history
It's not compatible with 4.0 yet because it uses a relocated interface Locatable
  • Loading branch information
barancev committed Aug 27, 2019
1 parent dfa0cc5 commit 9e1e353
Show file tree
Hide file tree
Showing 25 changed files with 65 additions and 40 deletions.
22 changes: 12 additions & 10 deletions .idea/libraries/htmlunit.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions third_party/java/brotli/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
prebuilt_jar(
name = "dec",
maven_coords = "org.brotli:dec:jar:0.1.2",
binary_jar = "dec-0.1.2.jar",
source_jar = "dec-0.1.2-sources.jar",
visibility = [
"//third_party/java/htmlunit:htmlunit",
],
)
12 changes: 12 additions & 0 deletions third_party/java/brotli/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
load("//third_party/java:rules.bzl", "maven_java_import")

licenses(["notice"])

package(default_visibility = ["//visibility:public"])

maven_java_import(
name = "dec",
coords = "org.brotli:dec:0.1.2",
jar = "dec-0.1.2.jar",
srcjar = "dec-0.1.2-sources.jar",
)
Binary file added third_party/java/brotli/dec-0.1.2-sources.jar
Binary file not shown.
Binary file added third_party/java/brotli/dec-0.1.2.jar
Binary file not shown.
25 changes: 13 additions & 12 deletions third_party/java/htmlunit/BUCK
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
prebuilt_jar(
name = "htmlunit",
maven_coords = "net.sourceforge.htmlunit:htmlunit:jar:2.34.1",
binary_jar = "htmlunit-2.34.1.jar",
source_jar = "htmlunit-2.34.1-sources.jar",
maven_coords = "net.sourceforge.htmlunit:htmlunit:jar:2.36.0",
binary_jar = "htmlunit-2.36.0.jar",
source_jar = "htmlunit-2.36.0-sources.jar",
deps = [
":htmlunit-core-js",
":neko-htmlunit",
":htmlunit-cssparser",
"//third_party/java/brotli:dec",
"//third_party/java/commons:commons-lang3",
"//third_party/java/commons:commons-text",
"//third_party/java/commons-io:commons-io",
Expand All @@ -24,27 +25,27 @@ prebuilt_jar(

prebuilt_jar(
name = "htmlunit-core-js",
maven_coords = "net.sourceforge.htmlunit:htmlunit-core-js:jar:2.34.0",
binary_jar = "htmlunit-core-js-2.34.0.jar",
source_jar = "htmlunit-core-js-2.34.0-sources.jar",
maven_coords = "net.sourceforge.htmlunit:htmlunit-core-js:jar:2.36.0",
binary_jar = "htmlunit-core-js-2.36.0.jar",
source_jar = "htmlunit-core-js-2.36.0-sources.jar",
visibility = [
"//java/client/test/...",
],
)

prebuilt_jar(
name = "neko-htmlunit",
maven_coords = "net.sourceforge.htmlunit:neko-htmlunit:jar:2.34.0",
binary_jar = "neko-htmlunit-2.34.0.jar",
source_jar = "neko-htmlunit-2.34.0-sources.jar",
maven_coords = "net.sourceforge.htmlunit:neko-htmlunit:jar:2.36.0",
binary_jar = "neko-htmlunit-2.36.0.jar",
source_jar = "neko-htmlunit-2.36.0-sources.jar",
deps = [
"//third_party/java/xerces:xercesImpl",
],
)

prebuilt_jar(
name = "htmlunit-cssparser",
maven_coords = "net.sourceforge.htmlunit:htmlunit-cssparser:jar:1.3.0",
binary_jar = "htmlunit-cssparser-1.3.0.jar",
source_jar = "htmlunit-cssparser-1.3.0-sources.jar",
maven_coords = "net.sourceforge.htmlunit:htmlunit-cssparser:jar:1.5.0",
binary_jar = "htmlunit-cssparser-1.5.0.jar",
source_jar = "htmlunit-cssparser-1.5.0-sources.jar",
)
25 changes: 13 additions & 12 deletions third_party/java/htmlunit/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ package(default_visibility = ["//visibility:public"])

maven_java_import(
name = "htmlunit",
coords = "net.sourceforge.htmlunit:htmlunit:jar:2.34.1",
jar = "htmlunit-2.34.1.jar",
srcjar = "htmlunit-2.34.1-sources.jar",
coords = "net.sourceforge.htmlunit:htmlunit:jar:2.36.0",
jar = "htmlunit-2.36.0.jar",
srcjar = "htmlunit-2.36.0-sources.jar",
deps = [
":htmlunit-core-js",
":htmlunit-cssparser",
":neko-htmlunit",
"//third_party/java/brotli:dec",
"//third_party/java/commons:commons-lang3",
"//third_party/java/commons:commons-text",
"//third_party/java/commons-io",
Expand All @@ -26,24 +27,24 @@ maven_java_import(

maven_java_import(
name = "htmlunit-core-js",
coords = "net.sourceforge.htmlunit:htmlunit-core-js:jar:2.34.0",
jar = "htmlunit-core-js-2.34.0.jar",
srcjar = "htmlunit-core-js-2.34.0-sources.jar",
coords = "net.sourceforge.htmlunit:htmlunit-core-js:jar:2.36.0",
jar = "htmlunit-core-js-2.36.0.jar",
srcjar = "htmlunit-core-js-2.36.0-sources.jar",
)

maven_java_import(
name = "neko-htmlunit",
coords = "net.sourceforge.htmlunit:neko-htmlunit:jar:2.34.0",
jar = "neko-htmlunit-2.34.0.jar",
srcjar = "neko-htmlunit-2.34.0-sources.jar",
coords = "net.sourceforge.htmlunit:neko-htmlunit:jar:2.36.0",
jar = "neko-htmlunit-2.36.0.jar",
srcjar = "neko-htmlunit-2.36.0-sources.jar",
deps = [
"//third_party/java/xerces:xercesImpl",
],
)

maven_java_import(
name = "htmlunit-cssparser",
coords = "net.sourceforge.htmlunit:htmlunit-cssparser:jar:1.3.0",
jar = "htmlunit-cssparser-1.3.0.jar",
srcjar = "htmlunit-cssparser-1.3.0-sources.jar",
coords = "net.sourceforge.htmlunit:htmlunit-cssparser:jar:1.5.0",
jar = "htmlunit-cssparser-1.5.0.jar",
srcjar = "htmlunit-cssparser-1.5.0-sources.jar",
)
Binary file removed third_party/java/htmlunit/htmlunit-2.34.1.jar
Binary file not shown.
Binary file not shown.
Binary file added third_party/java/htmlunit/htmlunit-2.36.0.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions third_party/java/selenium/BUCK
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
prebuilt_jar(
name = "htmlunit-driver",
maven_coords = "org.seleniumhq.selenium:htmlunit-driver:jar:2.33.4-SNAPSHOT",
binary_jar = "htmlunit-driver-2.33.4-SNAPSHOT.jar",
source_jar = "htmlunit-driver-2.33.4-SNAPSHOT-sources.jar",
maven_coords = "org.seleniumhq.selenium:htmlunit-driver:jar:2.36.0",
binary_jar = "htmlunit-driver-2.36.0.jar",
source_jar = "htmlunit-driver-2.36.0-sources.jar",
deps = [
"//java/client/src/org/openqa/selenium/remote:remote",
"//java/client/src/org/openqa/selenium/support:support",
Expand Down
6 changes: 3 additions & 3 deletions third_party/java/selenium/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package(default_visibility = ["//visibility:public"])

maven_java_import(
name = "htmlunit-driver",
coords = "org.seleniumhq.selenium:htmlunit-driver:jar:2.33.4-SNAPSHOT",
jar = "htmlunit-driver-2.33.4-SNAPSHOT.jar",
srcjar = "htmlunit-driver-2.33.4-SNAPSHOT-sources.jar",
coords = "org.seleniumhq.selenium:htmlunit-driver:jar:2.36.0",
jar = "htmlunit-driver-2.36.0.jar",
srcjar = "htmlunit-driver-2.36.0-sources.jar",
deps = [
"//java/client/src/org/openqa/selenium/remote",
"//java/client/src/org/openqa/selenium/support",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 9e1e353

Please sign in to comment.