I have a groovy file having following code :
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7' )
I am trying to download the dependencies to use HTTPBuilder
..
But it's showing me the error as follows :
Error grabbing Grapes -- [download failed: org.apache.httpcomponents#httpclient;4.2.1!httpclient.jar,download failed: org.apache.httpcomponents#httpcore;4.2.1!httpcore.jar, download failed: commons-codec#commons-codec;1.6!commons-codec.jar, download failed: commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar, download failed: commons-lang#commons-lang;2.4!commons-lang.jar]
I tried resolving this Grape dependency using below command in command prompt :
grape resolve org.codehaus.groovy.modules.http-builder http-builder 0.7.2
as well as tried the below one too :
grape install org.codehaus.groovy.modules.http-builder http-builder 0.7.2
then also it is showing me the same error. Can you help me solving this problem? I use Groovy version 2.2.2
From cfrick's referred link(as mentioned in comment),
I created grapeConfig.xml as mentioned in accepted answer of the link (Groovy - Grab - download failed)
and successfully able to get all the dependencies to my system. That's what I was looking for.