Skip to content

Commit

Permalink
[FLINK-23230] Fix protoc dependency for Apple Silicon / m1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Jan 3, 2022
1 parent 1b02f02 commit e548f21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions flink-connectors/flink-connector-pulsar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ under the License.
<outputDirectory>
${project.build.directory}/generated-test-sources/protobuf/java
</outputDirectory>
<protocArtifact>com.google.protobuf:protoc:3.5.1:exe:${os.detected.classifier}
</protocArtifact>
<protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
</configuration>
<executions>
<execution>
Expand Down
8 changes: 7 additions & 1 deletion flink-formats/flink-parquet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ under the License.
</exclusion>
</exclusions>
</dependency>
<!-- Bump protobuf version, see FLINK-23230 -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protoc.version}</version>
</dependency>

<!-- Tests -->

Expand Down Expand Up @@ -254,7 +260,7 @@ under the License.
<protoTestSourceRoot>${project.basedir}/src/test/resources/protobuf</protoTestSourceRoot>
<!-- Generates classes into a separate directory since the generator always removes existing files. -->
<outputDirectory>${project.build.directory}/generated-test-sources/protobuf/java</outputDirectory>
<protocArtifact>com.google.protobuf:protoc:3.5.1:exe:${os.detected.classifier}</protocArtifact>
<protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
</configuration>
<executions>
<execution>
Expand Down

0 comments on commit e548f21

Please sign in to comment.