Fixes issue#2158 by adding Automatic-Module-Name#3133
Fixes issue#2158 by adding Automatic-Module-Name#3133reinhapa wants to merge 1 commit intoehcache:masterfrom
Conversation
Signed-off-by: Patrick Reinhart <patrick@reini.net>
There was a problem hiding this comment.
The module names are okay (I think)... but the BndConvention probably isn't the right place (congratulations on navigating the build-system though). I'm actually prototyping this atm after your comment on #2158 floated this up to my attention again.
The changes I have staged at the moment put the manifest changes in InternalEhcacheModule and ClusteredEhcacheModule. That's really only the start though - the second issue is getting some test coverage in place to make sure everything is working. I managed to hack that in (could probably do with some cleanup) - but that leaves issues with split packages (right now between ehcache-xml-spi and ehcache-xml). I'm still working on this, but I'll push a draft PR shortly with the changes I have.
|
Would be cool to have those in the next release as I try to migrate the TweetWallFx project to the Java module system and got some other ones that would need this feature too. |
|
@chrisdennis Any progress on your prototype so far or would you give me a hint and I could look into it? |
|
This is caught in an awkward place atm. Automatic modules cannot be made to work because the
I'm hoping to get a decision made on this asap... but if I'm right and we go with a major version bump it's not going to happen massively quickly. |
|
@chrisdennis has any decision been made regarding which approach you're aiming for? |
Adds
Automatic-Module-Nameto the manifest logic.The default calculation will take the module name replace all
-characters with.and prefixes is withorg.in case of the moduleehcache-107a specific automatic module declarationorg.ehcache.jcachewas added to replace the calculated default name.