ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
137 stars 58 forks source link

Dependency conflict warning with gRPC #7028

Open MaryamZi opened 2 days ago

MaryamZi commented 2 days ago

Description: Running the module lifecycle example on U10 - https://ballerina.io/learn/by-example/module-lifecycle/

bal run test.bal 
Compiling source
        test.bal
ballerina/protobuf:1.6.1 [central.ballerina.io ->/<BAL_HOME>/repositories/central.ballerina.io/bala/ballerina/protobuf/1.6.1]  100% [==========] 18
        ballerina/protobuf:1.6.1 pulled from central successfully
        warning: Detected conflicting jar files:
                'protobuf-java-3.20.3.jar' dependency of 'ballerina/grpc' conflict with 'protobuf-java-3.25.5.jar' dependency of 'ballerina/protobuf'

Running executable

Hello world

The distribution build is also failing (output verification) due to this.

HindujaB commented 2 days ago

related to https://github.com/ballerina-platform/ballerina-library/issues/7013. Happening because the grpc fix is not released yet.

TharmiganK commented 1 day ago

This is happening since we have not updated the artifact id and group id in the protobuf module. Thats why we cannot resolve the conflicts.

We need to add those. Btw releasing the patch for grpc with the same version can also fix the problem

@daneshk Can we add those in the Ballerina.toml?

Nuvindu commented 1 day ago

Updated the protobuf-java dependency in the protobuf module, just to be on the safe side. https://github.com/ballerina-platform/module-ballerina-protobuf/pull/241