-->

自定义插件dependencies.groovy被忽略(Custom Plugin dependen

2019-10-18 11:58发布

问题:我已经建立了一个定制的Grails插件,通过BuildConfig.groovy定义我的其他插件的依赖和包装我的插件成一个zip文件。 然后我加入了压缩到我的本地仓库,一切都很好。 在zip中的文件dependencies.groovy有我依赖的插件项,因为它应该。 例:

grails.project.dependency.resolution = {
   inherits 'global'
   log 'warn'
   repositories {
      grailsCentral()
   }
   dependencies {
      // runtime 'mysql:mysql-connector-java:5.1.5'
   }
   plugins {
      build(':release:2.0.4', ':rest-client-builder:1.0.2') {
         export = false
      }
      compile ":rest:0.7"      // #1 plugin I'm dependent upon
      compile ":fields:1.3"    // #2 plugin I'm dependent upon
   }
}

当我添加插件的编译依赖另一个项目中(Eclipse中,通过BuildConfig.groovy文件),并刷新我的Grails的依赖,该插件安装,但我的插件插件是依赖于未安装(dependencies.groovy是忽略)。

我已经看到了这个问题贴了个遍,没有人提供了一个真正的解决方案。 有没有人找到了这个问题的解决?

文章来源: Custom Plugin dependencies.groovy is ignored