Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quartz feature does not work #325

Closed
matrei opened this issue Mar 23, 2024 · 1 comment
Closed

Quartz feature does not work #325

matrei opened this issue Mar 23, 2024 · 1 comment

Comments

@matrei
Copy link
Contributor

matrei commented Mar 23, 2024

Description

There is a compilation error when compiling apps that has added the quartz feature:
Unable to load class 'org.quartz.JobExecutionContext'

Related: grails/grails-quartz#107 (comment)

Adding:

implementation("org.quartz-scheduler:quartz:2.3.2") {
    exclude group: 'slf4j-api', module: 'c3p0'
}

will make the quartz plugin work.

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'
./gradlew dI --dependency org.quartz-scheduler:quartz --configuration runtimeClasspath

> Task :dependencyInsight
org.quartz-scheduler:quartz:2.3.2 (selected by rule)
  Variant runtime:
    | Attribute Name                 | Provided     | Requested    |
    |--------------------------------|--------------|--------------|
    | org.gradle.status              | release      |              |
    | org.gradle.category            | library      | library      |
    | org.gradle.libraryelements     | jar          | jar          |
    | org.gradle.usage               | java-runtime | java-runtime |
    | org.gradle.dependency.bundling |              | external     |
    | org.gradle.jvm.environment     |              | standard-jvm |
    | org.gradle.jvm.version         |              | 11           |

org.quartz-scheduler:quartz:2.2.3 -> 2.3.2
\--- org.grails.plugins:quartz:2.0.13
     \--- runtimeClasspath
@matrei
Copy link
Contributor Author

matrei commented Mar 25, 2024

Fixed by grails/grails-quartz#125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant