Update to latest version of protobuf compiler and Java runtime

This commit is contained in:
Leonard Ehrenfried 2024-11-07 22:06:32 +01:00
parent 7050448620
commit f427d7458e
No known key found for this signature in database
GPG Key ID: 91B9733022C70C1C
1 changed files with 13 additions and 2 deletions

15
pom.xml
View File

@ -31,9 +31,20 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<protoc.version>4.28.3</protoc.version>
</properties>
<build>
<extensions>
<!-- makes build variables like os.detected.classifier available.
use to select the correct protoc instance for the OS.
see protobuf-maven-plugin below -->
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.7.1</version>
</extension>
</extensions>
<sourceDirectory>${basedir}/src.java</sourceDirectory>
<testSourceDirectory>${basedir}/test.java</testSourceDirectory>
@ -59,7 +70,7 @@
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocExecutable>protoc</protocExecutable>
<protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
</configuration>
<executions>
<execution>
@ -143,7 +154,7 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.16.3</version>
<version>4.28.3</version>
</dependency>
</dependencies>