1
votes

I'm writing a Grails plugin that depends on the Quartz plugin, i.e. an application that installs my plugin must also install the Quartz plugin. In order to enforce this requirement, I added the following to the plugin's descriptor

def dependsOn = [quartz: '0.4.2']

However, when I run grails package-plugin I get the error

Error: The following plugins failed to load due to missing dependencies: [quartzJobStats]
- Plugin: quartzJobStats
   - Dependencies:
       ! quartz (Required: 0.4.2, Found: Not Installed) [INVALID]

How am I supposed to specify (plugin) dependencies of a plugin?

1

1 Answers

1
votes

Don't use dependsOn in Grails 2.0+, add a dependency in BuildConfig.groovy

plugins {
   build(':release:2.0.4', ':rest-client-builder:1.0.2') {
      export = false
   }
   compile ":quartz:0.4.2"
}

or this to use the latest:

compile ":quartz:1.0-RC2"