Skip to content

Commit

Permalink
chore: centralize protoc artifact configuration used by protobuf-mave…
Browse files Browse the repository at this point in the history
…n-plugin
  • Loading branch information
jsenko committed Sep 5, 2024
1 parent 69bfa14 commit b71614f
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 24 deletions.
4 changes: 1 addition & 3 deletions app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,7 @@
</goals>
<configuration>
<protoSourceRoot>./src/test/resources/schema</protoSourceRoot>
<protocArtifact>
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<protocArtifact>${protoc-artifact-common}</protocArtifact>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 1 addition & 3 deletions examples/protobuf-bean/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
<goal>compile</goal>
</goals>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<protocArtifact>${protoc-artifact-common}</protocArtifact>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 1 addition & 3 deletions examples/protobuf-find-latest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
<goal>compile</goal>
</goals>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<protocArtifact>${protoc-artifact-common}</protocArtifact>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 1 addition & 3 deletions examples/protobuf-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@
<goal>compile</goal>
</goals>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<protocArtifact>${protoc-artifact-common}</protocArtifact>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 1 addition & 3 deletions examples/serdes-with-references/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@
</goals>
<configuration>
<protoSourceRoot>./src/main/resources/schema</protoSourceRoot>
<protocArtifact>
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<protocArtifact>${protoc-artifact-common}</protocArtifact>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 1 addition & 3 deletions examples/simple-protobuf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
<goal>compile</goal>
</goals>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<protocArtifact>${protoc-artifact-common}</protocArtifact>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@
<embedded-postgres.version>2.0.7</embedded-postgres.version>
<strimzi.version>0.105.0</strimzi.version>
<wiremock.version>3.7.0</wiremock.version>

<protoc-artifact-common>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protoc-artifact-common>
</properties>

<dependencyManagement>
Expand Down
4 changes: 1 addition & 3 deletions serdes/protobuf-serde/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@
<goal>compile</goal>
</goals>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<protocArtifact>${protoc-artifact-common}</protocArtifact>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 1 addition & 3 deletions utils/protobuf-schema-utilities/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@
<goal>test-compile</goal>
</goals>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
</protocArtifact>
<protocArtifact>${protoc-artifact-common}</protocArtifact>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit b71614f

Please sign in to comment.