2

I want to use the HTTPBuilder class to send json Data to my server, I have imported the following namespaces, But my intelliJ IDEA is not recognizing the the "groovyx" saying can not resolve symbol.

import groovyx.net.http.ContentType
import groovyx.net.http.HTTPBuilder
import groovyx.net.http.Method

I have added the following to BuildConfig.groovy

compile "org.codehaus.groovy.modules.http-builder:http-builder:0.7"
Dónal
  • 185,044
  • 174
  • 569
  • 824
  • Your question has already been discussed [here](http://stackoverflow.com/questions/6552697/how-to-import-groovyx-net-http). – ludo_rj Apr 21 '14 at 13:31
  • Have you added this under `dependencies { .. }` or `plugins { .. }` section in BuildConfig? – dmahapatro Apr 21 '14 at 13:35

1 Answers1

0

There doesn't appear to be anything wrong with either your dependency or the packages you've imported. Have you compiled your app since you added this dependency? If not, run grails compile and grails refresh-dependencies and see if that fixes it.

Dónal
  • 185,044
  • 174
  • 569
  • 824