Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 497f1c6

Browse files
authored
switch protobuf maven plugin due deprecation (#168)
1 parent c11d716 commit 497f1c6

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

pom.xml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,24 @@
111111
</extensions>
112112
<plugins>
113113
<plugin>
114-
<groupId>org.xolstice.maven.plugins</groupId>
114+
<groupId>io.github.ascopes</groupId>
115115
<artifactId>protobuf-maven-plugin</artifactId>
116-
<version>0.6.1</version>
116+
<version>5.0.0</version>
117117
<configuration>
118-
<protocArtifact>com.google.protobuf:protoc:${protobuf-version}:exe:${os.detected.classifier}</protocArtifact>
119-
<pluginId>grpc-java</pluginId>
120-
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc-version}:exe:${os.detected.classifier}</pluginArtifact>
118+
<protoc>${protobuf-version}</protoc>
119+
<plugins>
120+
<plugin kind="binary-maven">
121+
<groupId>io.grpc</groupId>
122+
<artifactId>protoc-gen-grpc-java</artifactId>
123+
<version>${grpc-version}</version>
124+
</plugin>
125+
</plugins>
121126
</configuration>
122127
<executions>
123128
<execution>
124129
<goals>
125-
<goal>compile</goal>
126-
<goal>compile-custom</goal>
127-
<goal>test-compile</goal>
128-
<goal>test-compile-custom</goal>
130+
<goal>generate</goal>
131+
<goal>generate-test</goal>
129132
</goals>
130133
</execution>
131134
</executions>

0 commit comments

Comments
 (0)