File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ protobuf {
6060 // protoc and protoc-gen-grpc-java versions are selected to be compatible
6161 // with the oldest supported versions of protoc and grpc artifacts.
6262 protoc {
63- artifact = ' com.google.protobuf:protoc:3.10.1' + (System . getProperty(" os.arch" ) == ' aarch64' ? ' :osx-x86_64' : ' ' )
63+ artifact = ' com.google.protobuf:protoc:3.10.1' + (System . getProperty(" os.arch" ) == ' aarch64' && System . getProperty( " os.name " ) == ' Mac OS X ' ? ' :osx-x86_64' : ' ' )
6464 }
6565 plugins {
6666 grpc {
67- artifact = ' io.grpc:protoc-gen-grpc-java:1.34.1' + (System . getProperty(" os.arch" ) == ' aarch64' ? ' :osx-x86_64' : ' ' )
67+ artifact = ' io.grpc:protoc-gen-grpc-java:1.34.1' + (System . getProperty(" os.arch" ) == ' aarch64' && System . getProperty( " os.name " ) == ' Mac OS X ' ? ' :osx-x86_64' : ' ' )
6868 }
6969 }
7070 generateProtoTasks {
Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ protobuf {
6262 // protoc and protoc-gen-grpc-java versions are selected to be compatible
6363 // with the oldest supported versions of protoc and grpc artifacts.
6464 protoc {
65- artifact = ' com.google.protobuf:protoc:3.10.1' + (System . getProperty(" os.arch" ) == ' aarch64' ? ' :osx-x86_64' : ' ' )
65+ artifact = ' com.google.protobuf:protoc:3.10.1' + (System . getProperty(" os.arch" ) == ' aarch64' && System . getProperty( " os.name " ) == ' Mac OS X ' ? ' :osx-x86_64' : ' ' )
6666 }
6767 plugins {
6868 grpc {
69- artifact = ' io.grpc:protoc-gen-grpc-java:1.34.1' + (System . getProperty(" os.arch" ) == ' aarch64' ? ' :osx-x86_64' : ' ' )
69+ artifact = ' io.grpc:protoc-gen-grpc-java:1.34.1' + (System . getProperty(" os.arch" ) == ' aarch64' && System . getProperty( " os.name " ) == ' Mac OS X ' ? ' :osx-x86_64' : ' ' )
7070 }
7171 }
7272 generateProtoTasks {
You can’t perform that action at this time.
0 commit comments