aboutsummaryrefslogtreecommitdiff
path: root/spark-common/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'spark-common/build.gradle')
-rw-r--r--spark-common/build.gradle7
1 files changed, 5 insertions, 2 deletions
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 ->