Custom Plugin dependencies.groovy is ignored

元气小坏坏 提交于 2019-12-11 10:37:12

问题


The Problem: I've built a custom grails plugin, defined my dependencies on other plugins via BuildConfig.groovy and packaged my plugin into a zip file. I then added the zip to my local maven repository and all is well. The file dependencies.groovy within the zip has my dependent plugin entries as it should. Example:

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
   }
}

When I add the plugin as a compile dependency within another project (within eclipse, via the BuildConfig.groovy file), and refresh my grails dependencies, the plugin is installed but the plugins my plugin is dependent on are not installed (dependencies.groovy is ignored).

I've seen this problem posted over and over and no one provides a real solution. Has anyone found a fix for this problem?

来源:https://stackoverflow.com/questions/18257932/custom-plugin-dependencies-groovy-is-ignored

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!