在 grails 中使用 graphql 插件最终得到:java.lang.ClassNotFoundException: org.grails.compiler.web.converters.RenderConverterTrait

Using graphql plugin in grails ends up with: java.lang.ClassNotFoundException: org.grails.compiler.web.converters.RenderConverterTrait

我尝试在 grails 上下文中第一次体验 graphql。 我正在使用:

jdk1.8.0_162

Eclipse Java 面向 Web 开发人员的 EE IDE。

版本:Oxygen.2 发布 (4.7.2)

内部版本号:20171218-0600

OS: Linux, v.4.4.0-116-generic, x86_64 / gtk 3.18.9
Grails 版本:3.3.3

Groovy版本:2.4.14

在build.gradle中我通过

进入了graphql-plugin
compile "org.grails.plugins:gorm-graphql:1.0.3.BUILD-SNAPSHOT"

在依赖项部分。启动 grails 以构建成功告终,运行-up 以

告终
java.lang.ClassNotFoundException: org.grails.compiler.web.converters.RenderConverterTrait

关于 build.gradle 中的不兼容性或缺失条目的任何提示?

彼得

请将依赖项从

更改为
compile "org.grails.plugins:gorm-graphql:1.0.3.BUILD-SNAPSHOT"

compile 'org.grails.plugins:converters:3.3.1'

compile "org.grails.plugins:converters"

这是 Grails 核心的一部分,直到版本 3.3,现在是一个独立的插件。

Grails 3.3.x 及更高版本的用户应使用此插件。

查看插件存储库 here

希望对您有所帮助