From dd64274ca04b457241ce69eaac7c4a01472747e7 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 16 May 2021 11:59:48 +0100 Subject: Velocity 2.0.0 --- spark-common/build.gradle | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'spark-common/build.gradle') diff --git a/spark-common/build.gradle b/spark-common/build.gradle index 8530a0e..e07647d 100644 --- a/spark-common/build.gradle +++ b/spark-common/build.gradle @@ -37,8 +37,11 @@ processResources { protobuf { protoc { - artifact = 'com.google.protobuf:protoc:3.15.6' - //path = '/opt/homebrew/bin/protoc' // required to support building on osx-aarch64 + if (System.getProperty("os.name") == "Mac OS X" && System.getProperty("os.arch") == "aarch64") { + path = '/opt/homebrew/bin/protoc' + } else { + artifact = 'com.google.protobuf:protoc:3.15.6' + } } generateProtoTasks { all().each { task -> -- cgit