无法识别 Grails RestBuilder 插件

Grails RestBuilder plugin is not recognized

早上好。 我正在使用 grails,我需要使用 RestBuilder,但 Eclipse 无法识别 RestBuilder。我在 Build.Config:

中有这些东西
compile "org.springframework.boot:spring-boot-starter-logging"
    compile "org.springframework.boot:spring-boot-autoconfigure"
    compile "org.grails:grails-core"
    compile "org.springframework.boot:spring-boot-starter-actuator"
    compile "org.springframework.boot:spring-boot-starter-tomcat"
    compile "org.grails:grails-dependencies"
    compile "org.grails:grails-web-boot"
    compile "org.grails.plugins:cache"
    compile "org.grails.plugins:scaffolding"
    compile "org.grails.plugins:hibernate4"
    compile "org.hibernate:hibernate-ehcache"
    compile "org.grails.plugins:ajax-tags:1.0.0.RC1"
    compile 'org.grails.plugins:spring-security-core:3.1.1'
    compile 'org.grails:grails-datastore-rest-client:5.0.0.RC2'
    compile "org.grails.plugins:rest-client-builder:2.1.1"
    compile "org.grails.plugins:rest:0.8"
    compile "org.grails.plugins:grails-rest-renderers:0.5.1-RC1"
    console "org.grails:grails-console"
    profile "org.grails.profiles:web:3.1.7"
    runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.8.2"
    runtime "com.h2database:h2"
    runtime "mysql:mysql-connector-java:5.1.36"
    runtime "org.apache.httpcomponents:httpclient:4.3.6"
    testCompile "org.grails:grails-plugin-testing"
    testCompile "org.grails.plugins:geb"
    testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
    testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"

我也试过这些导入:

import grails.plugins.rest.client.RestBuilder
import grails.plugins.rest.client.RestResponse
import grails.plugins.rest.client.RestBuilder

有人可以帮帮我吗?我正在使用 grails 3.1.7。谢谢

如果你说的是这个插件:https://github.com/grails-plugins/grails-rest-client-builder

您可以阅读自述文件:

The code for this plugin has moved to a subproject of the Grails Data. Please submit any pull requests there.

此外:

For Grails 3.x this plugin is no longer necessary and you should instead just declare a dependency on the core Grails Data library:

 compile 'org.grails:grails-datastore-rest-client:5.0.0.RC2'