|
9 | 9 | <packaging>jar</packaging>
|
10 | 10 |
|
11 | 11 |
|
12 |
| - <properties> |
13 |
| - <protobuf-java.version>3.17.2</protobuf-java.version> |
14 |
| - </properties> |
15 |
| - |
16 | 12 | <dependencies>
|
17 | 13 | <dependency>
|
18 |
| - <groupId>com.google.protobuf</groupId> |
19 |
| - <artifactId>protobuf-java</artifactId> |
20 |
| - <version>${protobuf-java.version}</version> |
| 14 | + <groupId>io.grpc</groupId> |
| 15 | + <artifactId>grpc-netty</artifactId> |
| 16 | + <version>1.39.0</version> |
| 17 | + </dependency> |
| 18 | + <dependency> |
| 19 | + <groupId>io.grpc</groupId> |
| 20 | + <artifactId>grpc-protobuf</artifactId> |
| 21 | + <version>1.39.0</version> |
| 22 | + </dependency> |
| 23 | + <dependency> |
| 24 | + <groupId>io.grpc</groupId> |
| 25 | + <artifactId>grpc-stub</artifactId> |
| 26 | + <version>1.39.0</version> |
| 27 | + </dependency> |
| 28 | + <dependency> <!-- necessary for Java 9+ --> |
| 29 | + <groupId>org.apache.tomcat</groupId> |
| 30 | + <artifactId>annotations-api</artifactId> |
| 31 | + <version>6.0.53</version> |
| 32 | + <scope>provided</scope> |
21 | 33 | </dependency>
|
22 | 34 | </dependencies>
|
23 |
| - |
24 |
| - |
25 | 35 | <build>
|
| 36 | + <extensions> |
| 37 | + <extension> |
| 38 | + <groupId>kr.motd.maven</groupId> |
| 39 | + <artifactId>os-maven-plugin</artifactId> |
| 40 | + <version>1.6.2</version> |
| 41 | + </extension> |
| 42 | + </extensions> |
26 | 43 | <plugins>
|
27 | 44 | <plugin>
|
28 |
| - <groupId>org.apache.maven.plugins</groupId> |
29 |
| - <artifactId>maven-source-plugin</artifactId> |
30 |
| - <version>3.2.1</version> |
| 45 | + <groupId>org.xolstice.maven.plugins</groupId> |
| 46 | + <artifactId>protobuf-maven-plugin</artifactId> |
| 47 | + <version>0.6.1</version> |
| 48 | + <configuration> |
| 49 | + <protocArtifact>com.google.protobuf:protoc:3.17.2:exe:${os.detected.classifier}</protocArtifact> |
| 50 | + <pluginId>grpc-java</pluginId> |
| 51 | + <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.39.0:exe:${os.detected.classifier}</pluginArtifact> |
| 52 | + </configuration> |
31 | 53 | <executions>
|
32 | 54 | <execution>
|
33 |
| - <id>attach-sources</id> |
34 | 55 | <goals>
|
35 |
| - <goal>jar-no-fork</goal> |
| 56 | + <goal>compile</goal> |
| 57 | + <goal>compile-custom</goal> |
36 | 58 | </goals>
|
37 | 59 | </execution>
|
38 | 60 | </executions>
|
39 | 61 | </plugin>
|
40 |
| - <plugin> |
41 |
| - <groupId>org.apache.maven.plugins</groupId> |
42 |
| - <artifactId>maven-compiler-plugin</artifactId> |
43 |
| - <configuration> |
44 |
| - <source>6</source> |
45 |
| - <target>6</target> |
46 |
| - </configuration> |
47 |
| - </plugin> |
48 | 62 | </plugins>
|
49 | 63 | </build>
|
50 | 64 |
|
|
0 commit comments