Skip to content

Commit

Permalink
Build Improvements (Apicurio#5126)
Browse files Browse the repository at this point in the history
* Update pom.xml

* chore: centralize protoc artifact configuration used by protobuf-maven-plugin

* chore: exclude lombok from libs

---------

Co-authored-by: Nikisha Patil <[email protected]>
jsenko and NikishaPatil authored Sep 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d5f796d commit ee48313
Showing 14 changed files with 31 additions and 24 deletions.
4 changes: 1 addition & 3 deletions app/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
3 changes: 3 additions & 0 deletions app/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -18,6 +18,9 @@
<include>meta</include>
<include>meta/*</include>
</includes>
<excludes>
<exclude>lib/org.projectlombok.lombok-*.jar</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
4 changes: 1 addition & 3 deletions examples/protobuf-bean/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 1 addition & 3 deletions examples/protobuf-find-latest/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 1 addition & 3 deletions examples/protobuf-validation/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 1 addition & 3 deletions examples/serdes-with-references/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
4 changes: 1 addition & 3 deletions examples/simple-protobuf/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -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>
@@ -618,6 +620,12 @@
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java-util</artifactId>
<version>${protobuf.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protoc</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
4 changes: 1 addition & 3 deletions serdes/protobuf-serde/pom.xml
Original file line number Diff line number Diff line change
@@ -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>
3 changes: 3 additions & 0 deletions storage/kafkasql/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -18,6 +18,9 @@
<include>meta</include>
<include>meta/*</include>
</includes>
<excludes>
<exclude>lib/org.projectlombok.lombok-*.jar</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
3 changes: 3 additions & 0 deletions storage/mssql/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -16,6 +16,9 @@
<include>lib</include>
<include>lib/*</include>
</includes>
<excludes>
<exclude>lib/org.projectlombok.lombok-*.jar</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
3 changes: 3 additions & 0 deletions storage/mysql/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -16,6 +16,9 @@
<include>lib</include>
<include>lib/*</include>
</includes>
<excludes>
<exclude>lib/org.projectlombok.lombok-*.jar</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
3 changes: 3 additions & 0 deletions storage/sql/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -18,6 +18,9 @@
<include>meta</include>
<include>meta/*</include>
</includes>
<excludes>
<exclude>lib/org.projectlombok.lombok-*.jar</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
4 changes: 1 addition & 3 deletions utils/protobuf-schema-utilities/pom.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit ee48313

Please sign in to comment.