【问题标题】:Should Grails 3.x plugin name always include 'org.grails.plugins:'?Grails 3.x 插件名称是否应该始终包含“org.grails.plugins:”?
【发布时间】:2015-11-17 00:19:56
【问题描述】:

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

https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle 的默认值为org.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 grails-plugin grails-3.0


    【解决方案1】:

    我正在使用 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

    【讨论】:

    • 这是 maven groupId。我的问题是关于 Bintray 的名称。
    猜你喜欢
    • 1970-01-01
    • 2011-06-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多