gRPC-Java 1.50 upgrade instructions

22 views
Skip to first unread message

Berik Visschers

unread,
Oct 30, 2022, 8:44:13 AM10/30/22
to grpc.io
Hi All,

I'm reaching out to get help upgrading gRPC-Java and grpc-kotlin-stub on an open source repository.

The repository is mobile-dev-inc/maestro, and this is the PR for updating gRPC-Java.
Our CI system reports a complication error "e: /home/runner/work/maestro/maestro/maestro-ios/src/main/java/ios/IOSDevice.kt: (23, 8): Unresolved reference: idb".

I hope someone is willing to give me pointers on how to complete this version bump.

Many thanks,
-Berik

Berik Visschers

unread,
Oct 31, 2022, 7:07:04 AM10/31/22
to grpc.io

Comparing ./gradlew --console verbose build  on maestro main branch vs grpc_bump branch, the main build outputs

> Task :maestro-android:mergeExtDexRelease
> Task :maestro-ios:extractIncludeProto
> Task :maestro-ios:extractProto
> Task :maestro-ios:generateProto
> Task :maestro-ios:compileKotlin

whereas the grpc_bump build outputs

> Task :maestro-android:mergeExtDexRelease
> Task :maestro-ios:compileKotlin FAILED

It looks like the transitive dependency for generating the proto files got removed.

Berik Visschers

unread,
Oct 31, 2022, 12:14:30 PM10/31/22
to grpc.io
The issue can be fixed by adding the generateProto dependency to compileKotlin in the build.gradle file like so:

compileKotlin {
    dependsOn generateProto
}

Reply all
Reply to author
Forward
0 new messages