> -----Original Message----- > From: Russel Winder [mailto:rus...@winder.org.uk] > Sent: Monday, July 20, 2015 9:12 AM > To: users@groovy.incubator.apache.org > Subject: Re: Diagnosing grapes download error? > > On Mon, 2015-07-20 at 05:07 +0000, KARR, DAVID wrote: > > […] > > --------------------- > > #! /usr/bin/env groovy > > @Grapes([ > > @Grab("org.codehaus.geb:geb-core:0.7.0"), > > @Grab("org.seleniumhq.selenium:selenium-htmlunit > > -driver:2.23.1"), > > @Grab("org.seleniumhq.selenium:selenium-support:2.23.1") > > ]) > > import geb.Browser; > > ... > > ------------------ > > Is the @Grapes needed? Shouldn't: > > @Grab("org.codehaus.geb:geb-core:0.7.0") > @Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1") > @Grab("org.seleniumhq.selenium:selenium-support:2.23.1") > import geb.Browser; > > work?
It appears that the wrapper is needed in some cases, but not others. It works without it in this script, but the following doesn't specify exceptions to this rule: http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-MultipleGrapeAnnotations . > -- > Russel. > =================================================================== > ========== > Dr Russel Winder t: +44 20 7585 2200 voip: > sip:russel.win...@ekiga.net > 41 Buckmaster Road m: +44 7770 465 077 xmpp: > rus...@winder.org.uk > London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder