我今天玩了Grails3.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标签吗?
发布于 2015-02-01 19:17:11
我是postgresql扩展的作者之一。此时,插件与Grails3.0不兼容。我们需要等待Grails团队发布关于如何将插件从2.x迁移到3.0的更新文档。
发布于 2015-02-09 21:46:16
对于mongodb,请使用:
compile 'org.grails.plugins:mongodb:4.0.0.M1'https://stackoverflow.com/questions/28266450
复制相似问题