Jlink Services
Josiah Noel
josiahnoel at gmail.com
Sat Jun 10 21:02:42 UTC 2023
Heya, I've been using Jlink lately to create application images, and I
can't help but notice that I have to add my service provider modules
manually. The current bind-services flag doesn't help me since I'm only
interested in a few services and want to keep the image size down.
Would it be possible to get a sort of "add-services" argument that would
resolve all modules that provide the given service class?
I'm thinking of something like:
```
jlink --module-path mods --add-modules com.comsumer --add-services
com.provider.spi.ServiceClass
```
--
Cheers, Josiah.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jigsaw-dev/attachments/20230610/7ea3904c/attachment-0001.htm>
More information about the jigsaw-dev
mailing list