Gradle returns 找不到任务 'grails-create-controller'

Gradle returns Task 'grails-create-controller' not found

我通过命令 'grails create-app book' 创建了 grails3.0 项目并作为 gradle 项目导入到 IntelliJ IDEA 14.1.2。

IntelliJ IDEA 似乎识别该项目是 grails-gradle 项目,因为右键单击 'controller' 文件夹在 'New' 菜单中显示 'Grails Controller'。

但结果是错误说;

Task 'grails-create-controller' not found in root project 'book'

IntelliJ 的 Gradle window 没有任何 grails-gradle 任务。

https://www.jetbrains.com/idea/help/creating-gradle-project-with-grails-integration.html 中的说明没有帮助。

我想知道如何获得从 grails3.0 开始可用的 grails-tasks。

IDEA 14.1.2 和 Grails 有问题。

https://www.linkedin.com/grp/post/39757-5998013018389098499

there is a bug in IntelliJ 14.1.2 (latest stable). I upgraded and run configuration functionality, including ability to debug, is broken.

From IntelliJ support: This appears to be a bug in Grails plugin https://youtrack.jetbrains.com/issue/IDEA-139566 . The fix will be included in the next IDEA EAP update (available at https://confluence.jetbrains.com/display/IDEADEV/IDEA+14.1+EAP ) and IDEA 14.1.3 version.