-
Notifications
You must be signed in to change notification settings - Fork 581
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
Any plans to offer a Jakarta version? #2946
Comments
There are multiple things in motion in my periphery that would probably benefit from this migration, so it is likely to happen, but I can't offer a concrete timeline. That said I know of no reason why this isn't a simple migration, the disruption to user is a little harder to quantify. Given we don't bleed our usage out through API I could even in a pinch buy doing this in a dot release, but that might perturb some users. |
Hey @chrisdennis long time! I have a set of Gradle tasks that leverage the Jakarta transformer-tool to simplify this. Supposedly you can run it from the command line as well, but I have never had luck with that. The more important piece are the "rule" files which control the transformation. We have these as part of Hibernate as well. |
If you want to take a peek.. |
I've hacked up a branch: https://github.com/chrisdennis/ehcache3/tree/jakarta-jaxb that provides what I think you need. Getting this integrated is complicated though for a multitude of reasons:
I've kicked off the effort to push on this stuff internally. If I doesn't look like it'll get resolved quickly then I'll probably (at least temporarily) move to a split artifact set (e.g. |
For what it is worth, I really don't care about it getting "integrated" if by that you mean some specific environment. Just having it published is more than enough for us. In the meantime, we are releasing our Beta1 without support for JCache+Ehcache because we cannot test the |
Sorry... by integrated I meant merged in to |
Aww, would have been a great story if that were literally flying 😆 For what it is worth, with this 6.0 release of Hibernate we have made the switch to Jakarta at source level. After this Beta we will work on the opposite - publish |
Any luck getting a Jakarta-compatible release? Even a SNAPSHOT would be great for now. Additionally, since y'all know JCache well, can you explain the optional dependency on CDI? The JCache build says:
What does "annotations support" mean here? What does the CDI 1.1 (which has come and gone) comment mean? |
I've been working this on and off in the last couple of weeks. It's gotten tied up in a long standing Gradle upgrade task and I've run in to some Gradle issues that have held me up. I'm hoping to be done by the end of the week. I have it working locally, including updating the hibernate-jcache module to use the new module and all the tests run clean (if that's any solace). There's a bunch of stuff under |
Wow, thanks for the quick reply @chrisdennis ! Ok, so it is only related to use of caching-specific annotations for CDI-based injection. How common, if you know, is that in second-level caching for ORM providers? |
No idea, my experience with ORMs is so 'inside out' that I don't have a clear picture on that kind of thing. Incidentally the PR that overhauls the build system to add support for what you want is here: #2962 I've tested it locally by migrating the |
That would be amazingly awesome! We'd be able to re-enable "real" cache testing - atm we use our internal-only, intended for testing cache impl which is not really great |
I've created hibernate/hibernate-orm#4380 to cover (test?) integrating these changes in to Hibernate. |
Hello, |
There is an early alpha of this published under version |
Thanks for the quick reply! I will give it a try :) |
The ConfigurationParser.java still has some dependencies on javax.xml.bind... within ehcache-3.10.0-alpha0.jar |
Just one thing to check. The 'default' artifacts still use <dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>3.10.0-alpha0</version>
<classifier>jakarta</classifier>
</dependency> or in Gradle (where everything will work more transparently) implementation('org.ehcache:ehcache:3.10.0-alpha0') {
capabilities {
requireCapability("org.ehcache:ehcache-jakarta")
}
} Note: I typed the above from memory... I probably put in a bunch of typos and/or mistakes. |
Ah.... now it looks better. Thanks for the hint :) |
|
Very nice, thanks @chrisdennis! |
In playing around with migrating Hibernate to Jakarta Persistence APIs I ran into trouble with our
hibernate-jcache
module. The only hang up I saw was that ehcache3 uses JAXB which would need to be updated to use Jakarta's JAXB apis/impls.Having done this for Hibernate I can offer some help/guidance. Let me know
The text was updated successfully, but these errors were encountered: