|
24 | 24 | <jprotoc.version>1.2.2</jprotoc.version> |
25 | 25 | <protoc.version>4.29.3</protoc.version> |
26 | 26 | <protobuf.version>4.29.3</protobuf.version> |
| 27 | + <!-- NOTE: We need to stay on version 3.x of ascopes protobuf maven plugin until we bump minimum version of java from |
| 28 | + java 11 to java 17 as starting from 4.x minimum required version is java 17. |
| 29 | + See: https://ascopes.github.io/protobuf-maven-plugin/plugin-info.html#system-requirements-history |
| 30 | + --> |
| 31 | + <protobuf.maven.plugin.version>3.10.2</protobuf.maven.plugin.version> |
27 | 32 | <jmh.version>1.37</jmh.version> |
28 | 33 | </properties> |
29 | 34 |
|
|
220 | 225 | </modules> |
221 | 226 |
|
222 | 227 | <build> |
223 | | - <extensions> |
224 | | - <extension> |
225 | | - <groupId>kr.motd.maven</groupId> |
226 | | - <artifactId>os-maven-plugin</artifactId> |
227 | | - <version>1.7.1</version> |
228 | | - </extension> |
229 | | - </extensions> |
230 | 228 | <pluginManagement> |
231 | 229 | <plugins> |
232 | 230 | <plugin> |
|
247 | 245 | </execution> |
248 | 246 | </executions> |
249 | 247 | </plugin> |
250 | | - <plugin> |
251 | | - <groupId>org.xolstice.maven.plugins</groupId> |
252 | | - <artifactId>protobuf-maven-plugin</artifactId> |
253 | | - <version>0.6.1</version> |
254 | | - <configuration> |
255 | | - <!-- |
256 | | - The version of protoc must match protobuf-java. If you don't depend on |
257 | | - protobuf-java directly, you will be transitively depending on the |
258 | | - protobuf-java version that grpc depends on. |
259 | | - --> |
260 | | - <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact> |
261 | | - <pluginId>grpc-java</pluginId> |
262 | | - <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact> |
263 | | - <!-- Skip generating @javax.annotation.Generated which creates split packages --> |
264 | | - <pluginParameter>@generated=omit</pluginParameter> |
265 | | - </configuration> |
266 | | - </plugin> |
267 | 248 | <plugin> |
268 | 249 | <groupId>io.github.ascopes</groupId> |
269 | 250 | <artifactId>protobuf-maven-plugin</artifactId> |
270 | | - <version>3.8.2</version> |
| 251 | + <version>${protobuf.maven.plugin.version}</version> |
271 | 252 | <configuration> |
272 | 253 | <protocVersion>${protobuf.version}</protocVersion> |
273 | 254 | </configuration> |
| 255 | + <executions> |
| 256 | + <execution> |
| 257 | + <id>test-compile</id> |
| 258 | + <configuration> |
| 259 | + <binaryMavenPlugins> |
| 260 | + <binaryMavenPlugin> |
| 261 | + <groupId>io.grpc</groupId> |
| 262 | + <artifactId>protoc-gen-grpc-java</artifactId> |
| 263 | + <version>${grpc.version}</version> |
| 264 | + <!-- Skip generating @javax.annotation.Generated which creates split packages --> |
| 265 | + <options>@generated=omit</options> |
| 266 | + </binaryMavenPlugin> |
| 267 | + </binaryMavenPlugins> |
| 268 | + </configuration> |
| 269 | + </execution> |
| 270 | + </executions> |
274 | 271 | </plugin> |
275 | 272 | </plugins> |
276 | 273 | </pluginManagement> |
|
0 commit comments