grails - Grails 3.x 插件名称是否应该始终包含 'org.grails.plugins:' ?

标签 grails grails-plugin grails-3.0

Grails 3.x 插件名称应该是 org.grails.plugins:$project.name 还是只是 $project.name

默认值 https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradleorg.grails.plugins:$project.name,但位于 https://bintray.com/grails/plugins/有些插件包含 org.grails.plugins:,有些则不包含。

据我所知,没有明确的模式表明“官方”插件包含 org.grails.plugins: 而第三方插件不包含。

更新:上面引用的 bintrayPublishing.gradle 现在已将默认名称更改为 $project.group:$project.name。该名称只是一个名称,它不以任何方式用于依赖关系解析。但通过最新的更改,可以更轻松地查看 Maven groupId 和 artifactId 是什么。

更新 2:bintrayPublishing.gradle 再次更改了默认值,现在只是 $project.name。从 Grails 3.1 开始 bintrayPublishing.gradle 已被替换为 plugin 。另请参阅 this blog post 中的问题 2

最佳答案

我使用的是 grails 3.0.5

在我尝试安装插件之后......我开始知道......就像这样......

compile "org.grails.plugins:mail:2.0.0.RC2" ==> this plugin from grails.org

compile 'org.apache.activemq:activemq-spring:5.11.1' ==> this plugin from activemq.apache.org

compile "com.sun.mail:javax.mail:1.5.1" ==> this plugin look like from oracle

所以并非所有插件都必须包含org.grails.plugins

关于grails - Grails 3.x 插件名称是否应该始终包含 'org.grails.plugins:' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32167684/

相关文章:

Grails openid 插件 2.0.0 RC1 : getting "No such property: User exception"

grails - 发布 Grails 3 插件时出现 NullPointerException

eclipse - 使用Groovy-Eclipse插件在Grails中进行开发

grails - Grails 3.3.1控制台提供404

grails - 使用JQuery UI的Grails中的日期选择器:找不到资源错误

grails - 'Grails shell'在Grails.3.0.0.M1上不起作用

hibernate - grails 3(spring-boot)-如何配置 hibernate 二级缓存

java - 如何在 GGTS (Groovy Grails Tools Suite) 中正确配置 JDK 位置

Grails3.04,什么是 "f:table"?

spring - 使用Spring Security Rest插件时出现问题