Skip to content

Commit

Permalink
Support mac M1(osx-aarch_64) compile and test (#1305)
Browse files Browse the repository at this point in the history
Signed-off-by: crazyhzm <[email protected]>
  • Loading branch information
CrazyHZM authored Apr 22, 2024
1 parent 2ad93e1 commit 0ac2d8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sofa-boot-project/sofa-boot-core/rpc-sofa-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<properties>
<main.user.dir>${basedir}/../../..</main.user.dir>
<sofa.rpc.compiler.version>0.0.3</sofa.rpc.compiler.version>
<protobuf.protoc.version>3.17.3</protobuf.protoc.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -152,7 +153,7 @@
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.7.1:exe:${os.detected.classifier}</protocArtifact>
<protocArtifact>com.google.protobuf:protoc:${protobuf.protoc.version}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
<outputDirectory>build/generated/source/proto/test/java</outputDirectory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<properties>
<main.user.dir>${basedir}/../../..</main.user.dir>
<sofa.rpc.compiler.version>0.0.3</sofa.rpc.compiler.version>
<protobuf.protoc.version>3.17.3</protobuf.protoc.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -115,7 +116,7 @@
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.5.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.7.1:exe:${os.detected.classifier}</protocArtifact>
<protocArtifact>com.google.protobuf:protoc:${protobuf.protoc.version}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
<outputDirectory>build/generated/source/proto/test/java</outputDirectory>
Expand Down

0 comments on commit 0ac2d8f

Please sign in to comment.