res1
res1

Reputation: 3660

Groovy - Grab: why it continues to download the necessary jars ?

I have a script where a method is annotated with the @Grab annotation

@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.5.2' )

everytime i run the script groovy downloads all the required jars from internet, this makes the execution of the script very slow.

Why is it doing this? It has just downloaded all the necessary jars, i see them in .groovy/grapes

Groovy 1.8.4 on Linux

Thanks for the help

Upvotes: 1

Views: 1045

Answers (1)

tim_yates
tim_yates

Reputation: 171154

I think it's an issue with the http-builder repo itself having dependencies with a version range.

A possible workaround is here

Also, http-builder seems to have a dependency on Groovy [1.5,1.7.99] so no idea what it does when you Grab using Groovy 1.8

Upvotes: 4

Related Questions