-
Notifications
You must be signed in to change notification settings - Fork 25
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
Use Avaje Prisms instead of referencing annotations directly #277
Conversation
Merge prism changes
Switch to generating module-info for prisms
Just to say I wouldn't invest too much time into this as I'm likely to go the path of using TypeElement / TypeMirror / AnnotationMirror (as I mentioned earlier). |
I mean I got it working, and it works when I modularize my javalin project. But it is what it is I suppose. |
Sure you won't change your mind? hickory seems pretty rad and easy to use compared to AnnotationMirrors. |
Maybe. I'll put up a branch and we can compare ... noting that in the back of my mind there is:
|
hmm, I would have thought that number would be higher.
I like to stay optimistic about these sorts of things. One could even argue that having hickory makes the code easier to parse when compared to Annotation Mirrors and so would make it more likely for people to contribute. In any case, if it breaks something in the future, my pride won't allow me to leave it broken if I was the one who caused it. I'd be the first to remove it. |
@rbygrave Hickory is highly stable but just not supported. It is a very simple project and I was planning on forking it and releasing an updated version to maven central. It is important to understand that Hickory is never a true dependency. It is a zero dep code generator. The annotations it use are retention = SOURCE. The code it produces has zero references to anything hickory. In fact it inspired me to make my own annotation library produce zero dep code as an option: https://jstach.io/jstachio/#maven_zerodep MapStruct has gemtools which is a more update to date fork but sadly unlike Hickory it is not zero dep: mapstruct/tools-gem#11 If @SentryMan and I did not use it the code change would not have happened in a couple of hours like we did yesterday. Of course avaje instead of me could host a fork of hickory and then you would guarantee its future for these libraries. I'm planning to do it for jstachio at some point this month. |
Looks like prisms are back on the menu boys |
This was merged in via a squashed commit - 064d8be |
Closing as merged via the squashed commit - 064d8be , these changes will be in 8.12 |
For auto requires, you'll need to use the inject maven plugin though.
takes care of #276