hedera-sdk-java
hedera-sdk-java copied to clipboard
Build fail after updating protobufs
Description
Gradle build fails with an error below after updating protobufs (it started to happen after this commit).
> Task :sdk:generateProto FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sdk:generateProto'.
> protoc: stdout: . stderr: state/common.proto: File not found.
account.proto:25:1: Import "state/common.proto" was not found or had errors.
It is possible to fix this issue ad hoc by doing an extra step: updating protobuf imports in the processed protobufs under sdk/src/main/proto — need to remove state/ in order to import protobufs from the same folder.
Steps to reproduce
- Update protobufs by running
task update:protoor./scripts/update_protobufs.py main. - Build the project by running
./gradlew assemble.
Additional context
No response
Hedera network
other
Version
v2.30.0
Operating system
None