title: Grails plugin not detecting the dependencies of another plugin it uses
body: <p>I am using grails 2.3.7, in windows.</p>
  
  <p>I want to develop a grails-plugin <strong>schedulePlugin</strong>  which should work with another grails plugin <strong>dbPlugin</strong></p>
  
  <p>My Build config for schedulePlugin</p>
  
  <pre><code>grails.project.dependency.resolver="ivy"
  
  grails.project.dependency.resolution = {
      // inherit Grails' default dependencies
      inherits("global") {
          // uncomment to disable ehcache
          // excludes 'ehcache'
      }
      log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
      legacyResolve true // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility
      repositories {        
  
          grailsPlugins()
          grailsHome()
          mavenLocal()        
          grailsCentral()
          mavenCentral()
  
          mavenRepo 'http://repo.spring.io/milestone'
      }
      dependencies {       
  
      }
  
      plugins {
  
          runtime ':hibernate:3.6.10.10'
  
          build(        
               ":tomcat:7.0.50.1",
                ":release:2.2.1",
                ":rest-client-builder:1.0.3") {
              export = false
          }
  
          //Own           
          compile ":grails-dbPlugin:2.0-A6"
      }
  </code></pre>
  
  <p>My Build config for dbPlugin</p>
  
  <pre><code>grails.project.dependency.resolver = "maven" // or ivy
  
  grails.project.dependency.resolution = {
      // inherit Grails' default dependencies
      inherits("global") {
          // uncomment to disable ehcache
          // excludes 'ehcache'
      }
      log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
      legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility
      repositories {
          grailsPlugins()
          grailsHome()
          mavenLocal()
          grailsCentral()
          mavenCentral()
  
  
  
  
          mavenRepo "http://repo.grails.org/grails/libs-releases/" //Added this repo to resolve plugin dependencies for hibernate, joda, zk &amp; quartz.
          mavenRepo 'http://repo.spring.io/milestone'
      }
      dependencies { 
  
      }
  
      plugins {  
  
  
      compile ":audit-logging:1.0.1"
  
      compile ":database-migration:1.3.8"
  
      runtime ":hibernate:3.6.10.10"   
  
      build(":release:3.0.1"
            ,":rest-client-builder:1.0.3"
            ,":tomcat:7.0.50.1") {
        export = false
      }    
  
    }
  }
  </code></pre>
  
  <p>when i compile schedulePlugin, it give me compilation error</p>
  
  <pre><code>| Error Compilation error: startup failed:
  C:\projects\scheduler\target\work\plugins\dbPlugin-2.0-A6\grails-app\migrations\init-changelog.groovy: 1: unable to resolve class liquibase.statement.core.
   @ line 1, column 1.
     import liquibase.statement.core.InsertStatement
  </code></pre>
  
  <p>I can resolve the error if i add the <strong>compile ":database-migration:1.3.8"</strong> to BuildConfig of schedulePlugin</p>
  
  <p>But shouldnt it be automatically inherit the dependencies of dbPlugin . Can some one assist with how the dependency should be resolved in this case</p>
  
  <p>Thanks</p>