xlate / property-inject

Simple CDI extension to support injection of java.util.Properties values
GNU Affero General Public License v3.0
11 stars 8 forks source link

Jakarta version #186

Closed mann-ed closed 3 months ago

mann-ed commented 4 months ago

I was updating my projects to Jakarta and this is one of the projects that does not have a Jakarta version. I spent some time and created a fork and few sub projects to have jakarta support.

Pull Request incoming, so we can discuss about changes.

mann-ed commented 4 months ago

For javax i had to use java 11 to build mvn clean test integration-test -pl :javax-property-inject Then for jakarta i'm using java 21 mvn clean package install integration-test test -pl :jakarta-property-inject,jakarta-property-inject-test

pull Request #187

This should help anyone trying to build my fork.

mann-ed commented 4 months ago

I was not happy with the initial change to get Jakarta support. So i worked on it a little more after some sleep and have a version that is just the single project. I have added profiles to build for javax and jakarta. Going to create new pull request for that

MikeEdgar commented 4 months ago

@mann-ed , I'm away from my computer for a few days and I intend to review/respond to your work some time next week. Thank you

mann-ed commented 4 months ago

@MikeEdgar I see the build is failing. It's not giving me much in logs to go by to help resolve the issue, or i'm not looking in the right place. I know the jakarta command can't run on java 8. Let me know what i can do to move this on. I did see i left my personal artifactory repo in the pom.xml file. Sorry about that. I will get it pulled out now.

MikeEdgar commented 4 months ago

@mann-ed , I wonder if now is the time to just rip off the band-aid and move to Jakarta only. It would make things a bit simpler and avoid the need to build for both javax and jakarta packages. What do you think?

mann-ed commented 4 months ago

@MikeEdgar That's a tough question. I think the build for this one is pretty straight forward, not any code changes that developers need to make. If we ever introduced changes that are only Jakarta only, then i think javax should be drop.

I know how some shops don't update fast, so they are stuck with javax. Then again this could be another reason for them to update to the new java release. Then again, as a developer we would need to keep old javax java around to develop with. So it might be that with this new major release javax is now dropped. Would make development easier for us.

I know not much help am i? LOL

MikeEdgar commented 4 months ago

@mann-ed I'm thinking it might be time to just make the change. The Jakarta namespace has been out for several years now, so I think it's fair to say that when there are new features to property-inject, developers need to update to a more recent version of the platform.

A good option would probably be to continue generating Java 8 compatible bytecode (which should work with Jakarta EE 9), but only run the CI on 17/21 in this repository, since several of the dependencies have moved to 17 in their current versions.

mann-ed commented 4 months ago

@MikeEdgar Do you want me to create a new branch, update the code and pom file, then create a new pull request? I'm out teaching this weekend, but i can get to it on Monday.

MikeEdgar commented 4 months ago

I think a separate PR would be good. Thank you for looking into this, and of course there is no rush at all.