--bind-services

You're welcome :)

Michał 

> On 10 Jun 2023, at 23:03, Josiah Noel <josiahn...@gmail.com> wrote:
> 
> 
> 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.

Reply via email to