Protobuf schema compatibility check (maven plugin)

Closes #30243

Signed-off-by: Ryan Emerson <remerson@redhat.com>
This commit is contained in:
Ryan Emerson 2024-06-13 12:52:37 +01:00 committed by Alexander Schwartz
parent fa5bb72069
commit edde31a1ca
2 changed files with 28 additions and 0 deletions

View file

@ -99,4 +99,20 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.infinispan.maven-plugins</groupId>
<artifactId>proto-schema-compatibility-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>proto-schema-compatibility-check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

12
pom.xml
View file

@ -199,6 +199,7 @@
<smallrye.openapi.generator.plugin.version>3.6.2</smallrye.openapi.generator.plugin.version>
<openapi.generator.plugin.version>6.3.0</openapi.generator.plugin.version>
<build-helper-maven-plugin.version>3.2.0</build-helper-maven-plugin.version>
<infinispan.maven-plugins.version>1.0.5.Final</infinispan.maven-plugins.version>
<!-- Surefire Settings -->
<surefire.memory.Xms>512m</surefire.memory.Xms>
@ -236,6 +237,9 @@
<pnpm.args.install>install --prefer-offline --frozen-lockfile --ignore-scripts</pnpm.args.install>
<!-- The clean step is skipped on Windows -->
<js.skip.clean>false</js.skip.clean>
<!-- Set to true on release to update proto.lock files -->
<commitProtoLockChanges>false</commitProtoLockChanges>
</properties>
<url>http://keycloak.org</url>
@ -1721,6 +1725,14 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.infinispan.maven-plugins</groupId>
<artifactId>proto-schema-compatibility-maven-plugin</artifactId>
<version>${infinispan.maven-plugins.version}</version>
<configuration>
<commitProtoLock>${commitProtoLockChanges}</commitProtoLock>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>