grails - How to import groovyx.net.http -


i don't understand maven or grape, , i'm idiot give me step step if answer "go grap x-dependency manager , rtfm , you're set." find , dump files make line work:

import groovyx.net.http.httpbuilder 

it says groovy: unable resolve class groovyx.net.http.httpbuilder

also unable import groovyx.net.http.contenttype.urlenc says unable resolve class groovyx.net.http.contenttype.urlenc

update:

apparently can uncomment line mavenrepo "http://repository.codehaus.org" in buildconfig.groovy

since you're talking buildconfig.groovy assume question targeted @ using httpbuilder in grails application. if so, either use

compile('org.codehaus.groovy.modules.http-builder:http-builder:0.5.0') {         excludes "commons-logging", "xml-apis", "groovy" } 

in dependencies-section of buildconfig.groovy, or, more easier, install rest plugin:

grails install-plugin rest 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -