Selenium 3.5.1 release causing issues in older seleniums (specifically htmlunit-driver)

32 views
Skip to first unread message

Ben Douglas

unread,
Aug 21, 2017, 10:55:45 AM8/21/17
to Selenium Users
It looks like htmlunit-driver in older seleniums (including 3.3.0 and 3.4.0) have a loose dependency on selenium-api and selenium-support and are therefore grabbing 3.5.1 of both those artifacts, and mucking up the dependency tree if you're trying to pin your selenium to a specific version.  Figured I'd let folks here know.  Is there a bug for this already?

Offending dependency in tree:

|    +--- org.seleniumhq.selenium:htmlunit-driver:2.26
|    |    +--- org.seleniumhq.selenium:selenium-api:[3.3.1,4.0.0) -> 3.5.1
|    |    +--- org.seleniumhq.selenium:selenium-support:[3.3.1,4.0.0) -> 3.5.1 (*)
|    |    \--- net.sourceforge.htmlunit:htmlunit:2.26 (*)


Workaround in gradle:

// compile("org.seleniumhq.selenium:selenium-java:3.4.0")

compile
("org.seleniumhq.selenium:selenium-java:3.4.0") {
 exclude
group: 'org.seleniumhq.selenium', module: 'htmlunit-driver'
}
// If you need parts of htmlunit-driver dependencies, uncomment this
// compile("org.seleniumhq.selenium:htmlunit-driver:2.26") {
// exclude group: 'org.seleniumhq.selenium', module: 'selenium-api'
// exclude group: 'org.seleniumhq.selenium', module: 'selenium-support'
// }
compile
group: 'org.seleniumhq.selenium', name: 'selenium-support', version: "3.4.0"
// Make sure guava is 21.0... others don't play well
compile
group: 'com.google.guava', name: 'guava', version: '21.0'
// If you need codec stuff from newer commons-codec
compile
group: 'commons-codec', name: 'commons-codec', version: '1.10'



Reply all
Reply to author
Forward
0 new messages