Repository navigation
Conversation
Closes keycloak#55421 Signed-off-by: Václav Muzikář <vmuzikar@ibm.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the JCache dependency removal and accompanying upgrade guidance.
No open issues 🎉
What changed in this PR
Removes unused JCache dependencies from the Quarkus runtime now that Hibernate’s second-level cache is disabled, addressing #55421.
Changes:
- Excludes Hibernate JCache and Caffeine JCache from the Hibernate ORM dependency.
- Updates upgrade guidance with the dependencies and configuration needed by custom extensions that require Hibernate caching.
| File | Description |
|---|---|
quarkus/runtime/pom.xml |
Excludes the two JCache dependencies. |
docs/documentation/upgrading/topics/changes/changes-27_0_0.adoc |
Documents removed libraries and steps to restore caching for custom extensions. |
Review effort: Balanced
Signed-off-by: Václav Muzikář <vmuzikar@ibm.com>
d715056 to
7e20c32
Compare
| If you use a custom extension that relies on Hibernate's second-level or query cache, install `org.hibernate.orm:hibernate-jcache`, `com.github.ben-manes.caffeine:jcache`, `javax.cache:cache-api` and `com.typesafe:config` in the `providers` directory, using versions compatible with the bundled Hibernate ORM and Quarkus versions. | ||
| Do not duplicate dependencies already bundled with {project_name}, such as Hibernate ORM core and Caffeine core. | ||
| To re-enable caching by default, set `quarkus.hibernate-orm.second-level-caching-enabled=true` in `conf/quarkus.properties`. | ||
| Custom persistence units inherit this setting unless they explicitly set `hibernate.cache.use_second_level_cache` or `hibernate.cache.use_query_cache` in their `persistence.xml` properties. | ||
| Then run `kc.sh build`. |
There was a problem hiding this comment.
I would even consider completely remove the migration steps and just say second-level cache is not supported any more, if we decide to make it a breaking change and target 27 only. But I'm open to discussion.
There was a problem hiding this comment.
This doesn't sound like a viable alternative, this is difficult to get right. I'd say remove it from 27.0 as a breaking change.
Did you plan to backport that change to 26.8?
|
@ahus1 This should be ready for review. |
Closes #55421