AvalanceIndia

Unable to run HttpBuilder for groovy(2.4.15) script

Recommended Posts

@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.1')
import groovyx.net.http.HTTPBuilder

We can a script where I need to Call HttPBuilder to make API call.

used @Grab statement in my script but realized that my laptop security and network security does not allw me me to go Maven Central and download jar.

So I used https://stackoverflow.com/questions/3601570/how-to-download-jars-from-maven-central-without-writing-any-pom-xml suggestion and managed to download jar.

I renamed the downloaded file to Http-Buolder-0.7.1.jar and moved it to JAVA_HOME\lib folder.

Still import statement fail.

What am I doing wrong? My PC is Windows 7  

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Who's Online   0 Members, 0 Anonymous, 23 Guests (See full list)

    There are no registered users currently online