This is because the grails-quartz plugin does not put the org.quartz-scheduler:quartz on the compileClasspath but only on the runtimeClasspath of grails apps.
./gradlew dI --dependency org.quartz-scheduler:quartz --configuration compileClasspath
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
> Task :dependencyInsight
No dependencies matching given input were found in configuration ':compileClasspath'
Description
There is a compilation error when compiling apps that has added the quartz feature:
Unable to load class 'org.quartz.JobExecutionContext'
Related: https://github.com/grails-plugins/grails-quartz/issues/107#issuecomment-575951471
Adding:
will make the quartz plugin work.
This is because the
grails-quartz
plugin does not put theorg.quartz-scheduler:quartz
on thecompileClasspath
but only on theruntimeClasspath
of grails apps.