如何将mongodb和/或postgresql扩展插件添加到Grails 3.0.0+



我今天玩了Grails 3.0.0.M1,并尝试使用mongodb制作一个小应用程序,但是我无法将其正确添加到我的build.gradle文件中。正确的语法是什么?我试过(摘录):

repositories {
  mavenLocal()
  maven { url "http://repo.grails.org/grails/core" }
}
dependencyManagement {
    imports {
        mavenBom "org.grails:grails-bom:$grailsVersion"
    }
    applyMavenExclusions false
}

dependencies {
    //...
    compile ':mongodb:3.0.2'
    //...
}

正如该插件的文档所建议的那样,但最终找不到它。我还注意到grailsCentral()快捷方式不起作用。

然后我尝试添加postgresql扩展,但它是一样的。语法是否发生了变化,当时是否不支持这些插件,或者是什么原因?

另外,有能力的人可以添加一个 grails-3.0 标签吗?

我是postgresql-extensions的作者之一。目前,该插件与Grails 3.0不兼容。我们需要等到 Grails 团队发布有关如何将插件从 2.x 迁移到 3.0 的更新文档。

对于 mongodb 使用:

compile 'org.grails.plugins:mongodb:4.0.0.M1'

最新更新