-
-
Notifications
You must be signed in to change notification settings - Fork 953
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
Upgrade to 6.1.1 fails when Redis is in place with other plugins (ex. OAuth) #13324
Upgrade to 6.1.1 fails when Redis is in place with other plugins (ex. OAuth) #13324
Comments
This is probably because grails-events and grails-async was updated to 5.0.0 in grails-core 6.1.1. You should be able to downgrade manually by adding the following to the dependencies section of build.gradle: implementation 'org.grails.plugins:events:4.0.0'
implementation 'org.grails.plugins:async:4.0.0' Those deprecated classes should probably be added back and org.grails.plugins:events:5.0.1 released to be included in Grails 6.1.2 or alternatively Grails 6 should be downgraded to 4.0.0 again. |
I believe we should add those classes back in 5.0.1 release. If you can send a PR, I will try to get it out this week and patch Grails 6. |
https://github.com/antony/grails-oauth-scribe is based on Grails 3.0.3. Prior to Grails 3.3.0 events and async was baked into grails-core. Even though none of this functionality is used in grails-oauth-scribe, its Grails artifacts still requires to get an |
Scratch the previous comment. It turned out that the deprecated files are not missing from 5.0.0. They were removed after that release. The real problem was that grails-plugins-async (that gets added to grails applications by grails-dependencies) was not longer pulling in grails-plugin-events (which it does not really depend on). This is should now be resolved by grails/grails-async#70. |
resolve issue grails#13324
This commit adds the Events plugin to all Grails applications by adding it to the `grails-dependencies`. Previously this has happened transitively through the inclusion of the Async plugin in `grails-dependencies`. However, as `grails-plugin-async` does not depend on the `grails-plugin-events`, it makes more sense to add `grails-plugin-events` in `grails-dependencies` explicitly. This prepares for the removal of `grails-plugins-events` to be declared as a dependency in `grails-plugin-async`. Related: grails/grails-async#44 grails/grails-async#69 grails/grails-async#70 #13324
* fix: Add `grails-plugin-events` to `grails-dependencies` This commit adds the Events plugin to all Grails applications by adding it to the `grails-dependencies`. Previously this has happened transitively through the inclusion of the Async plugin in `grails-dependencies`. However, as `grails-plugin-async` does not depend on the `grails-plugin-events`, it makes more sense to add `grails-plugin-events` in `grails-dependencies` explicitly. This prepares for the removal of `grails-plugins-events` to be declared as a dependency in `grails-plugin-async`. Related: grails/grails-async#44 grails/grails-async#69 grails/grails-async#70 #13324 * fix: Remove unnecessary exclusions of `javax:javaee-web-api` These exclusions should not be necessary anymore as `javax:javaee-web-api` is not included in `grails-plugin-async` or `grails-gsp`.
Expected Behavior
After upgrading a basic application that uses Redis and other plugins (like OAuth or Jesque) from Grails version 6.1.0 to 6.1.1, we anticipate the application to start as usual.
This expectation is particularly reasonable given that the upgrade is a minor version change.
Actual Behaviour
The app fails to start with the following error:
Steps To Reproduce
build.gradle
:Alternatively, just checkout the following project:
https://github.com/rmondejar/grails-611-issue
Although the only changes are:
https://github.com/rmondejar/grails-611-issue/blob/main/build.gradle#L60-L62
Environment Information
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode)
Example Application
https://github.com/rmondejar/grails-611-issue
Version
6.1.1
The text was updated successfully, but these errors were encountered: