From c1accf631ee1171ea59788509ed17b4acac1c4e1 Mon Sep 17 00:00:00 2001 From: 0xAlbertAtBIB Date: Sat, 23 Sep 2023 14:48:09 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20fix=20Mac=20M1=20M2=20support=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9=E8=8B=B9=E6=9E=9Cm1=E7=9A=84?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trident-java/core/build.gradle | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/trident-java/core/build.gradle b/trident-java/core/build.gradle index 1784043..f9c8115 100644 --- a/trident-java/core/build.gradle +++ b/trident-java/core/build.gradle @@ -24,11 +24,19 @@ dependencies { protobuf { protoc { - artifact = 'com.google.protobuf:protoc:3.12.0' + if (osdetector.os == "osx") { + artifact = 'com.google.protobuf:protoc:3.12.0:osx-x86_64' + } else { + artifact = 'com.google.protobuf:protoc:3.12.0' + } } plugins { grpc { - artifact = 'io.grpc:protoc-gen-grpc-java:1.31.0' + if (osdetector.os == "osx") { + artifact = 'io.grpc:protoc-gen-grpc-java:1.31.0:osx-x86_64' + } else { + artifact = 'io.grpc:protoc-gen-grpc-java:1.31.0' + } } } generateProtoTasks {