Cannot reference plugin classes grails 2.4.4

2019-08-11 05:10发布

I have added the following entry to BuildConfig.groovy:

compile ":rest-client-builder:2.1.1"

The plugin supposedly installed correctly and the project compiled.

I am trying to import the RestBuilder class in a controller but the class name cannot be resolved?

import grails.plugins.rest.client.RestBuilder

Groovy:unable to resolve class grails.plugins.rest.client.RestBuilder

I have no spent an hour and a half trying to figure out why this is not working. I am not sure what else to do or what information to provide as to get this working. Can anyone well versed in groovy explain how this could be or offer some advice??

Thank you

1条回答
疯言疯语
2楼-- · 2019-08-11 05:47

I used grails clean-all and grails compile from grails console(Windows command prompt).

Using the same in intellij(v15.0) run target did not work for me.

查看更多
登录 后发表回答