How to import groovyx.net.http

后端 未结 3 1695
别跟我提以往
别跟我提以往 2020-12-16 13:05

I don\'t understand maven or grape, and I\'m an idiot so give me the step by step if your answer is \"go grap X-dependency manager and then rtfm and you\'re set.\" Where do

3条回答
  •  悲&欢浪女
    2020-12-16 13:42

    Since you're talking about BuildConfig.groovy I assume the question is targeted at using HttpBuilder in a grails application. If so, you could either use

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

    in the dependencies-section of BuildConfig.groovy, or, even more easier, just install the rest plugin:

    grails install-plugin rest
    

提交回复
热议问题