简体   繁体   English

Grails插件的硬依赖关系如何工作?

[英]How Grails plugin hard depenencies work?

I found plugin that has dependencies defined in BuildConfig.groovy and same dependencies duplicated in plugin manifest like this: 我发现插件具有在BuildConfig.groovy中定义的依赖项,并且在插件清单中重复了相同的依赖项,如下所示:

def dependsOn = [foo: "* > 1.0"]

Are this definitions same? 这个定义是否相同?

dependsOn shouldn't be used in 2.0 and higher. 在2.0及更高版本中不应使用dependsOn We no longer use that setting - dependencies are specified in BuildConfig.groovy and those are used to generate a POM file when releasing the plugin. 我们不再使用该设置-在BuildConfig.groovy中指定了依赖项,并在发布插件时将其用于生成POM文件。 The POM is used when installing the plugin to determine jar and plugin dependencies. 安装插件时使用POM来确定jar和插件的依赖关系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM