On 03/03/2011, at 2:18 AM, Peter Niederwieser wrote:
> Your dependency declarations are serious overkill, and can be reduced to
> something like this:
>
> compile 'javax.servlet:servlet-api:2.4'
> runtime 'mysql:mysql-connector-java:5.1.6'
>
> testCompile 'junit:junit:4.8.1'
> testCompile "org.codehaus.geb:geb-core:0.5.1"
> testCompile "org.codehaus.geb:geb-junit4:0.5.1"
> testRuntime "org.seleniumhq.selenium:selenium-firefox-driver:2.0b2"
>
> Are you sure that your versions of Geb and Selenium are compatible?
The problem is that the 2.0b2 version of webdriver was a botched release. For
some reason they have not released version 2.0b2 of selenium-common to the
central repo, while all of the drivers depend on it.
So when Ivy (the dependency management engine Gradle uses) fails to find a copy
of selenium-common 2.0b2 that it can use, it falls back to the next version
that is in the dependency configuration. This ends up being selenium-common
2.0a4 which is what Geb builds against (as of latest release). The 2.0b2
version of the drivers is not compatible with 2.0a4 of selenium-common.
Therefore, the solution is to use version 2.0b1 of the driver, or explicitly
depend on 2.0b1 of selenium-common.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email