|
@@ -14,12 +14,6 @@
|
|
|
<name>fdkk-meta</name>
|
|
|
<description>fdkk-meta</description>
|
|
|
<packaging>jar</packaging>
|
|
|
- <repositories>
|
|
|
- <repository>
|
|
|
- <id>jitpack.io</id>
|
|
|
- <url>https://jitpack.io</url>
|
|
|
- </repository>
|
|
|
- </repositories>
|
|
|
<properties>
|
|
|
<java.version>1.8</java.version>
|
|
|
<hutool.version>5.7.7</hutool.version>
|
|
@@ -29,7 +23,10 @@
|
|
|
<mybatis-plus-boot-starter.version>3.4.3.1</mybatis-plus-boot-starter.version>
|
|
|
<druid.version>1.2.6</druid.version>
|
|
|
<pagehelper.boot.version>1.3.1</pagehelper.boot.version>
|
|
|
-
|
|
|
+ <grpc.version>1.36.0</grpc.version>
|
|
|
+ <os.plugin.version>1.5.0.Final</os.plugin.version>
|
|
|
+ <protobuf.plugin.version>0.5.0</protobuf.plugin.version>
|
|
|
+ <protoc.version>3.3.0</protoc.version>
|
|
|
</properties>
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
@@ -134,15 +131,51 @@
|
|
|
<!-- </dependency>-->
|
|
|
<!--redis连接池 end-->
|
|
|
<dependency>
|
|
|
- <groupId>com.github.soriole</groupId>
|
|
|
- <artifactId>webrtc-signaling-server</artifactId>
|
|
|
- <version>v0.0.6</version>
|
|
|
+ <groupId>net.devh</groupId>
|
|
|
+ <artifactId>grpc-client-spring-boot-starter</artifactId>
|
|
|
+ <version>2.13.1.RELEASE</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>net.devh</groupId>
|
|
|
+ <artifactId>grpc-server-spring-boot-starter</artifactId>
|
|
|
+ <version>2.13.1.RELEASE</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- grpc 这里的版本很重要,不同的版本代码都会有不同 -->
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.grpc</groupId>
|
|
|
+ <artifactId>grpc-protobuf</artifactId>
|
|
|
+ <version>${grpc.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.grpc</groupId>
|
|
|
+ <artifactId>grpc-stub</artifactId>
|
|
|
+ <version>${grpc.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java-util -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.protobuf</groupId>
|
|
|
+ <artifactId>protobuf-java-util</artifactId>
|
|
|
+ <version>3.7.1</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- https://mvnrepository.com/artifact/com.googlecode.protobuf-java-format/protobuf-java-format -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.googlecode.protobuf-java-format</groupId>
|
|
|
+ <artifactId>protobuf-java-format</artifactId>
|
|
|
+ <version>1.4</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
<build>
|
|
|
-
|
|
|
+ <extensions>
|
|
|
+ <extension>
|
|
|
+ <groupId>kr.motd.maven</groupId>
|
|
|
+ <artifactId>os-maven-plugin</artifactId>
|
|
|
+ <version>${os.plugin.version}</version>
|
|
|
+ </extension>
|
|
|
+ </extensions>
|
|
|
<resources>
|
|
|
<resource>
|
|
|
<directory>src/main/resources</directory>
|
|
@@ -172,6 +205,24 @@
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.xolstice.maven.plugins</groupId>
|
|
|
+ <artifactId>protobuf-maven-plugin</artifactId>
|
|
|
+ <version>${protobuf.plugin.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
|
|
|
+ <pluginId>grpc-java</pluginId>
|
|
|
+ <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>compile</goal>
|
|
|
+ <goal>compile-custom</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
<finalName>${project.artifactId}</finalName>
|
|
|
</build>
|