Skip to Content
0
Apr 11 at 04:26 AM

gRPC Jar Resolution Strategy for SAP Commerce Cloud

182 Views

Hello!

I am developing a few gRPC integrations.

And I injected at my extension's external-dependencies this jar

<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-api</artifactId>
<version>1.52.1</version>
</dependency>

The problem is that when I am using this feature at CCV2, instead of using the injected jar (1.52.1), it is using another jar:

jar:file:/opt/hybris/bin/ext-ccv2/businessmetrics/lib/grpc-api-1.41.0.jar!/io/grpc/ManagedChannelBuilder.class

I found it out by running this script at HAC

io.grpc.ManagedChannelBuilder.class.getClassLoader().getResource("io/grpc/ManagedChannelBuilder.class")

Is there any way I can force to use ChannelBuilder 1.52.1 version?