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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

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

    There are no registered users currently online