Search code examples
grailsgradlequartz-schedulergrails-3.0

Grails 3.0 and Quartz plugin : how do I install it?


If added the following in my build.gradle file:

repositories {
        maven { url "https://repo.grails.org/grails/repo/"}
    }
dependencies {
    compile "org.grails.plugins:quartz:1.0.2"
}

This could get it to compile. Although, running

grails create-job MyJob

results in failure. I've manually added in grails-app/jobs/MyJob Triggers doesn't fire, calling MyJob.schedule() results in method not found errors.


Solution

  • You want this:

    compile 'org.grails.plugins:quartz:2.0.0'
    

    2.0 is the first version of the plugin that Grails 3 supports.