aboutsummaryrefslogtreecommitdiff
path: root/spark-common/build.gradle
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2021-05-16 11:59:48 +0100
committerLuck <git@lucko.me>2021-05-16 11:59:48 +0100
commitdd64274ca04b457241ce69eaac7c4a01472747e7 (patch)
tree1f80efba2c9563bc91dc27806109eeb8f51845e7 /spark-common/build.gradle
parentf17661af47cd36d4df5339edf0dd5349123bfe53 (diff)
downloadspark-dd64274ca04b457241ce69eaac7c4a01472747e7.tar.gz
spark-dd64274ca04b457241ce69eaac7c4a01472747e7.tar.bz2
spark-dd64274ca04b457241ce69eaac7c4a01472747e7.zip
Velocity 2.0.0
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 ->