Fix Proto compilation on M1 Macs

The Maven artifact upstream doesn't have an ARM version of Proto
compiler. Since updating the artifact breaks the compilation, this
explicitly requests x86 protoc binary which is then run via Rosetta.
Build completes successfully.

Change-Id: Ia13f28a6f019ad53e88f6dd4a8788ab7ec1ebead
Test: Manual
This commit is contained in:
Brian Isganitis 2022-03-18 14:19:30 -07:00
parent 8198cb6f3f
commit 8ef29784e1
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ dependencies {
protobuf {
// Configure the protoc executable
protoc {
artifact = "com.google.protobuf:protoc:${protocVersion}"
artifact = "com.google.protobuf:protoc:${protocVersion}${PROTO_ARCH_SUFFIX}"
}
generateProtoTasks {
all().each { task ->