Hi Chris,
Groovy doesn't like when it's itself pulled in through grapes. Given that
Geb depends on Groovy it will be pulled in transitively unless you exclude
it like this:
@Grapes([
@Grab("org.gebish:geb-core:1.0"),
@Grab("org.seleniumhq.selenium:selenium-firefox-driver:3.0.1"),
@Grab("org.seleniumhq.selenium:selenium-support:3.0.1"),
@GrabExclude("org.codehaus.groovy:groovy-all")])
import geb.Browser
Marcin
On Thu, Nov 3, 2016 at 12:09 AM, Chris Hermansen <[email protected]>
wrote:
> Good people,
>
> Taking my first steps with Geb and something is breaking when I try to
> install.
>
> My Groovy version info: Groovy Version: 2.4.6 JVM: 1.8.0_111 Vendor:
> Oracle Corporation OS: Linux
>
> My Groovy script that fails, in grab.groovy
>
> @Grapes([
> @Grab("org.gebish:geb-core:1.0"),
> @Grab("org.seleniumhq.selenium:selenium-firefox-driver:3.0.1"),
> @Grab("org.seleniumhq.selenium:selenium-support:3.0.1")])
>
> import geb.Browser
>
> Here is what happens when I run it with groovy
> -Dgroovy.grape.report.downloads=true grab.groovy
>
> Resolving dependency: org.seleniumhq.selenium#selenium-support;3.0.1
> {default=[default]}
> Resolving dependency: org.seleniumhq.selenium#selenium-firefox-driver;3.0.1
> {default=[default]}
> Resolving dependency: org.gebish#geb-core;1.0 {default=[default]}
> Preparing to download artifact org.seleniumhq.selenium#seleni
> um-support;3.0.1!selenium-support.jar
> Preparing to download artifact org.seleniumhq.selenium#seleni
> um-firefox-driver;3.0.1!selenium-firefox-driver.jar
> Preparing to download artifact org.gebish#geb-core;1.0!geb-core.jar
> Preparing to download artifact org.seleniumhq.selenium#seleni
> um-remote-driver;3.0.1!selenium-remote-driver.jar
> Preparing to download artifact junit#junit;4.12!junit.jar
> Preparing to download artifact org.seleniumhq.selenium#seleni
> um-api;3.0.1!selenium-api.jar
> Preparing to download artifact cglib#cglib-nodep;3.2.4!cglib-nodep.jar
> Preparing to download artifact org.apache.commons#commons-exe
> c;1.3!commons-exec.jar
> Preparing to download artifact com.google.code.gson#gson;2.3.1!gson.jar
> Preparing to download artifact com.google.guava#guava;19.0!guava.jar
> Preparing to download artifact org.apache.httpcomponents#http
> mime;4.5.2!httpmime.jar
> Preparing to download artifact net.java.dev.jna#jna-platform;
> 4.1.0!jna-platform.jar
> Preparing to download artifact org.apache.httpcomponents#http
> client;4.5.2!httpclient.jar
> Preparing to download artifact org.apache.httpcomponents#http
> core;4.4.4!httpcore.jar
> Preparing to download artifact commons-logging#commons-loggin
> g;1.2!commons-logging.jar
> Preparing to download artifact commons-codec#commons-codec;1.
> 9!commons-codec.jar
> Preparing to download artifact net.java.dev.jna#jna;4.1.0!jna.jar
> Preparing to download artifact org.hamcrest#hamcrest-core;1.3
> !hamcrest-core.jar
> Preparing to download artifact org.codehaus.groovy#groovy-all
> ;2.4.6!groovy-all.jar
> Preparing to download artifact org.gebish#geb-ast;1.0!geb-ast.jar
> Preparing to download artifact org.gebish#geb-waiting;1.0!geb-waiting.jar
> Preparing to download artifact org.jodd#jodd-lagarto;3.7.1!jo
> dd-lagarto.jar
> Preparing to download artifact org.gebish#geb-implicit-assert
> ions;1.0!geb-implicit-assertions.jar
> Preparing to download artifact org.gebish#geb-exceptions;1.0!
> geb-exceptions.jar
> Preparing to download artifact org.jodd#jodd-core;3.7.1!jodd-core.jar
> Preparing to download artifact org.jodd#jodd-log;3.7.1!jodd-log.jar
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
> failed:
> General error during conversion: Error grabbing Grapes -- [download
> failed: commons-logging#commons-logging;1.2!commons-logging.jar]
>
> followed by a stack trace which I did not include.
>
> I hope someone has a suggestion for me! Thanks very much in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/geb-user/12d75df1-a81a-4825-8631-400f9321ed9f%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/12d75df1-a81a-4825-8631-400f9321ed9f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "Geb
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/CA%2B52dQSpu1r27Q331jVm0T-vv-ZnMj66stSXRoxgsAJ1M7kGuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.