如何在Grails 3.0.4中配置插件的安装? [英] How do I configure installation of plugins in Grails 3.0.4?

查看:97
本文介绍了如何在Grails 3.0.4中配置插件的安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将一个应用程序从Grails 2.4.2移植到Grails 3.0.4,我遇到了一些以前安装的插件的问题。特别是在GSP页面中引用的一个。这个特定的插件叫做google-visualizer,我在这里找到了一些信息:



https://github.com/bmuschko/grails-google-visualization/blob/master/grails-app/ views / formatter / index.gsp



然而,我对如何安装这一点毫无头绪。我没有在任何maven仓库中找到特定的jar文件,所以我不能将它添加为Gradle依赖项。一般来说,它在何处记载了如何在Grails 3.X中安装现有的插件?我已阅读有关如何端口现有插件的文档,但这不是我想要做的。我只是想告诉Grails / Gradle我想使用这个特定的插件,并让它解决了我的依赖关系。我试过这种语法,如下所示:



https://grails.org/plugins/tag/grails3

 示例:

编译:quartz:1.0.2

我把这行放在依赖块中我的build.gradle文件,但它不起作用。我从Gradle得到错误。是否需要为插件添加特定的Maven回购协议?任何帮助,这是表示赞赏。谢谢。

解决方案

Grails 1.x和2.x插件可悲地与Grails 3.x不兼容。
$ b

您可以在 https: //bintray.com/grails/plugins/



grails-google-visualization插件不是在Grails 3版本中发布的,而是从repo中发布的,看起来工作已经开始升级。
您可以在此问题中查看Grails 3版本的进度: https ://github.com/bmuschko/grails-google-visualization/issues/49



Benjamin前段时间找了一位新的维护人员,他发现一位志愿者 - 详细了解这一点: https://twitter.com/bmuschko/status/498610606896066560



对于那些最重要的插件,Grails Core团队在这里维护一个列表: https://github.com/grails/grails-core/wiki/Grails-3-Priority-Upgrade-Plugins



一些旧的插件将被他们的Gradle对手fx所取代。 codenarc插件,已经存在于Gradle版本中。


I'm porting an application from Grails 2.4.2 to Grails 3.0.4, and I'm having problems with some plugins that were installed previously. Specifically one that is referenced in a GSP page. The particular plugin is called google-visualizer, and I've found some info here:

https://github.com/bmuschko/grails-google-visualization/blob/master/grails-app/views/formatter/index.gsp

However, I am clueless as to how to install this. I have not found the particular jar file in any maven repo, so I can't add it as a Gradle dependency. In general, where is it documented how to install existing plugins in Grails 3.X? I've read the documentation on how to port existing plugins, but that's not what I'm trying to do. I simply want to tell Grails/Gradle that I'd like to use this particular plugin and have it resolve the dependencies for me. I've tried this syntax as shown here:

https://grails.org/plugins/tag/grails3

Example: 

compile ":quartz:1.0.2"

I've put that line in the dependencies block in my build.gradle file, but it doesn't work. I get errors from Gradle. Is there a particular Maven repo that has to be added for plugins? Any help with this is appreciated. Thanks.

解决方案

Grails 1.x and 2.x plugins are sadly not compatible with Grails 3.x.

You can find the plugins that already have been ported to Grails 3 at: https://bintray.com/grails/plugins/

The grails-google-visualization plugin is not released in a Grails 3 version, but from the repo, it appears that work has started on upgrading. You can see the progress on a Grails 3 version in this issue: https://github.com/bmuschko/grails-google-visualization/issues/49

Benjamin searched for a new maintainer back some time ago, and found a volunteer - see this tread for details: https://twitter.com/bmuschko/status/498610606896066560

For those plugins that are most important, the Grails Core team maintains a list here: https://github.com/grails/grails-core/wiki/Grails-3-Priority-Upgrade-Plugins

Some of the old plugins will be replaced by their Gradle counterpart, fx. the codenarc plugin, that exist in a Gradle version already.

这篇关于如何在Grails 3.0.4中配置插件的安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆