Jump to content
groovyPost Forums

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  

Link to comment
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.

×
×
  • Create New...