Sorry I hope it's OK to post a response to myself!
I found no solution to this using Grapes but all seems to work OK using the
gradle alternative. For reference / in case anyone is interested:
1. I installed gradle (using SDKMAN)
2. initialized the working directory using gradle init
--type=groovy-library
3. added the three lines mentioned in The Book of Geb to my build.gradle
file, with version 3.0.1 instead of 2.52.0
4. ran gradle build
5. success.
On Wednesday, November 2, 2016 at 5:09:19 PM UTC-7, Chris Hermansen 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#selenium-support;3.0.1!selenium-support.jar
> Preparing to download artifact
> org.seleniumhq.selenium#selenium-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#selenium-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#selenium-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-exec;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#httpmime;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#httpclient;4.5.2!httpclient.jar
> Preparing to download artifact
> org.apache.httpcomponents#httpcore;4.4.4!httpcore.jar
> Preparing to download artifact
> commons-logging#commons-logging;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!jodd-lagarto.jar
> Preparing to download artifact
> org.gebish#geb-implicit-assertions;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/msgid/geb-user/e59e7f58-1549-4079-92d5-e9d58b659fd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.