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
Post a Comment