Skip to content

Commit

Permalink
Specify protoc version when building protos
Browse files Browse the repository at this point in the history
And update to the latest version. Apple started releasing the osx
aarch64 (M1) version in 3.17.3
[link](os72/protoc-jar-maven-plugin#129)

This is a fix for this error on M1 builds:
[ERROR] Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.11.4:run (default) on project proto:
Error extracting protoc for version 3.11.4: Unsupported platform: protoc-3.11.4-osx-aarch_64.exe -> [Help 1]
  • Loading branch information
andozw committed Mar 3, 2023
1 parent f57874b commit d5b140a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/proto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<protoBufVersion>3.21.5</protoBufVersion>
</properties>

<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.21.5</version>
<version>${protoBufVersion}</version>
</dependency>
</dependencies>

Expand All @@ -38,6 +39,7 @@
<goal>run</goal>
</goals>
<configuration>
<protocVersion>${protoBufVersion}</protocVersion>
<addProtoSources>all</addProtoSources>
<inputDirectories>
<include>src/main/proto</include>
Expand Down

0 comments on commit d5b140a

Please sign in to comment.