|
|
|
|
@@ -1,227 +1,228 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
<version>3.4.5</version>
|
|
|
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
|
|
|
</parent>
|
|
|
|
|
<groupId>org.springframework.grpc</groupId>
|
|
|
|
|
<artifactId>grpc-server-kotlin-sample</artifactId>
|
|
|
|
|
<version>0.9.0-SNAPSHOT</version>
|
|
|
|
|
<name>Spring gRPC Kotlin Server Sample</name>
|
|
|
|
|
<description>Demo project for Spring gRPC</description>
|
|
|
|
|
<url/>
|
|
|
|
|
<licenses>
|
|
|
|
|
<license/>
|
|
|
|
|
</licenses>
|
|
|
|
|
<developers>
|
|
|
|
|
<developer/>
|
|
|
|
|
</developers>
|
|
|
|
|
<scm>
|
|
|
|
|
<connection/>
|
|
|
|
|
<developerConnection/>
|
|
|
|
|
<tag/>
|
|
|
|
|
<url/>
|
|
|
|
|
</scm>
|
|
|
|
|
<properties>
|
|
|
|
|
<java.version>17</java.version>
|
|
|
|
|
<spring-javaformat-maven-plugin.version>0.0.43</spring-javaformat-maven-plugin.version>
|
|
|
|
|
<protobuf-java.version>4.30.2</protobuf-java.version>
|
|
|
|
|
<grpc.version>1.72.0</grpc.version>
|
|
|
|
|
<grpc.kotlin.version>1.4.3</grpc.kotlin.version>
|
|
|
|
|
<kotlin.version>1.9.22</kotlin.version>
|
|
|
|
|
</properties>
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.grpc</groupId>
|
|
|
|
|
<artifactId>spring-grpc-dependencies</artifactId>
|
|
|
|
|
<version>0.9.0-SNAPSHOT</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.grpc</groupId>
|
|
|
|
|
<artifactId>spring-grpc-spring-boot-starter</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.jetbrains.kotlinx</groupId>
|
|
|
|
|
<artifactId>kotlinx-coroutines-core</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
|
<artifactId>grpc-kotlin-stub</artifactId>
|
|
|
|
|
<version>${grpc.kotlin.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
|
<artifactId>grpc-services</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
<version>3.4.5</version>
|
|
|
|
|
<relativePath /> <!-- lookup parent from repository -->
|
|
|
|
|
</parent>
|
|
|
|
|
<groupId>org.springframework.grpc</groupId>
|
|
|
|
|
<artifactId>grpc-server-kotlin-sample</artifactId>
|
|
|
|
|
<version>0.9.0-SNAPSHOT</version>
|
|
|
|
|
<name>Spring gRPC Kotlin Server Sample</name>
|
|
|
|
|
<description>Demo project for Spring gRPC</description>
|
|
|
|
|
<url />
|
|
|
|
|
<licenses>
|
|
|
|
|
<license />
|
|
|
|
|
</licenses>
|
|
|
|
|
<developers>
|
|
|
|
|
<developer />
|
|
|
|
|
</developers>
|
|
|
|
|
<scm>
|
|
|
|
|
<connection />
|
|
|
|
|
<developerConnection />
|
|
|
|
|
<tag />
|
|
|
|
|
<url />
|
|
|
|
|
</scm>
|
|
|
|
|
<properties>
|
|
|
|
|
<java.version>17</java.version>
|
|
|
|
|
<spring-javaformat-maven-plugin.version>0.0.43</spring-javaformat-maven-plugin.version>
|
|
|
|
|
<protobuf-java.version>4.30.2</protobuf-java.version>
|
|
|
|
|
<grpc.version>1.72.0</grpc.version>
|
|
|
|
|
<grpc.kotlin.version>1.4.3</grpc.kotlin.version>
|
|
|
|
|
<kotlin.version>1.9.22</kotlin.version>
|
|
|
|
|
</properties>
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.grpc</groupId>
|
|
|
|
|
<artifactId>spring-grpc-dependencies</artifactId>
|
|
|
|
|
<version>0.9.0-SNAPSHOT</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.grpc</groupId>
|
|
|
|
|
<artifactId>spring-grpc-spring-boot-starter</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.jetbrains.kotlinx</groupId>
|
|
|
|
|
<artifactId>kotlinx-coroutines-core</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
|
<artifactId>grpc-kotlin-stub</artifactId>
|
|
|
|
|
<version>${grpc.kotlin.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
|
<artifactId>grpc-services</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<!-- for testing unix domain sockets -->
|
|
|
|
|
<groupId>io.netty</groupId>
|
|
|
|
|
<artifactId>netty-transport-native-epoll</artifactId>
|
|
|
|
|
<classifier>linux-x86_64</classifier>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.grpc</groupId>
|
|
|
|
|
<artifactId>spring-grpc-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<!-- for testing unix domain sockets -->
|
|
|
|
|
<groupId>io.netty</groupId>
|
|
|
|
|
<artifactId>netty-transport-native-epoll</artifactId>
|
|
|
|
|
<classifier>linux-x86_64</classifier>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.grpc</groupId>
|
|
|
|
|
<artifactId>spring-grpc-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<sourceDirectory>src/main/kotlin</sourceDirectory>
|
|
|
|
|
<extensions>
|
|
|
|
|
<extension>
|
|
|
|
|
<groupId>kr.motd.maven</groupId>
|
|
|
|
|
<artifactId>os-maven-plugin</artifactId>
|
|
|
|
|
<version>1.7.1</version>
|
|
|
|
|
</extension>
|
|
|
|
|
</extensions>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
|
|
|
<version>${kotlin.version}</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>compile</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>compile</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>test-compile</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>test-compile</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
|
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<buildArgs>
|
|
|
|
|
<buildArg>--verbose</buildArg>
|
|
|
|
|
</buildArgs>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<skip>true</skip>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.spring.javaformat</groupId>
|
|
|
|
|
<artifactId>spring-javaformat-maven-plugin</artifactId>
|
|
|
|
|
<version>${spring-javaformat-maven-plugin.version}</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<?m2e ignore?>
|
|
|
|
|
<phase>validate</phase>
|
|
|
|
|
<inherited>true</inherited>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>validate</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.github.ascopes</groupId>
|
|
|
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
|
|
|
<version>3.1.2</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<protocVersion>${protobuf-java.version}</protocVersion>
|
|
|
|
|
<binaryMavenPlugins>
|
|
|
|
|
<binaryMavenPlugin>
|
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
|
<artifactId>protoc-gen-grpc-java</artifactId>
|
|
|
|
|
<version>${grpc.version}</version>
|
|
|
|
|
<classifier>${os.detected.classifier}</classifier>
|
|
|
|
|
<options>jakarta_omit,@generated=omit</options>
|
|
|
|
|
</binaryMavenPlugin>
|
|
|
|
|
</binaryMavenPlugins>
|
|
|
|
|
<jvmMavenPlugins>
|
|
|
|
|
<jvmMavenPlugin>
|
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
|
<artifactId>protoc-gen-grpc-kotlin</artifactId>
|
|
|
|
|
<version>${grpc.kotlin.version}</version>
|
|
|
|
|
<classifier>jdk8</classifier>
|
|
|
|
|
<type>jar</type>
|
|
|
|
|
<mainClass>io.grpc.kotlin.generator.GeneratorRunner</mainClass>
|
|
|
|
|
<options>jakarta_omit,@generated=omit</options>
|
|
|
|
|
</jvmMavenPlugin>
|
|
|
|
|
</jvmMavenPlugins>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>generate</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<build>
|
|
|
|
|
<sourceDirectory>src/main/kotlin</sourceDirectory>
|
|
|
|
|
<extensions>
|
|
|
|
|
<extension>
|
|
|
|
|
<groupId>kr.motd.maven</groupId>
|
|
|
|
|
<artifactId>os-maven-plugin</artifactId>
|
|
|
|
|
<version>1.7.1</version>
|
|
|
|
|
</extension>
|
|
|
|
|
</extensions>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
|
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
|
|
|
<version>${kotlin.version}</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>compile</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>compile</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>test-compile</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>test-compile</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.graalvm.buildtools</groupId>
|
|
|
|
|
<artifactId>native-maven-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<buildArgs>
|
|
|
|
|
<buildArg>--verbose</buildArg>
|
|
|
|
|
</buildArgs>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
|
<configuration>
|
|
|
|
|
<skip>true</skip>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.spring.javaformat</groupId>
|
|
|
|
|
<artifactId>spring-javaformat-maven-plugin</artifactId>
|
|
|
|
|
<version>${spring-javaformat-maven-plugin.version}</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<?m2e ignore?>
|
|
|
|
|
<phase>validate</phase>
|
|
|
|
|
<inherited>true</inherited>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>validate</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>io.github.ascopes</groupId>
|
|
|
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
|
|
|
|
<version>3.1.2</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<protocVersion>${protobuf-java.version}</protocVersion>
|
|
|
|
|
<binaryMavenPlugins>
|
|
|
|
|
<binaryMavenPlugin>
|
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
|
<artifactId>protoc-gen-grpc-java</artifactId>
|
|
|
|
|
<version>${grpc.version}</version>
|
|
|
|
|
<classifier>${os.detected.classifier}</classifier>
|
|
|
|
|
<options>jakarta_omit,@generated=omit</options>
|
|
|
|
|
</binaryMavenPlugin>
|
|
|
|
|
</binaryMavenPlugins>
|
|
|
|
|
<jvmMavenPlugins>
|
|
|
|
|
<jvmMavenPlugin>
|
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
|
<artifactId>protoc-gen-grpc-kotlin</artifactId>
|
|
|
|
|
<version>${grpc.kotlin.version}</version>
|
|
|
|
|
<classifier>jdk8</classifier>
|
|
|
|
|
<type>jar</type>
|
|
|
|
|
<mainClass>io.grpc.kotlin.generator.GeneratorRunner</mainClass>
|
|
|
|
|
<options>jakarta_omit,@generated=omit</options>
|
|
|
|
|
</jvmMavenPlugin>
|
|
|
|
|
</jvmMavenPlugins>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<?m2e execute onConfiguration,onIncremental?>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>generate</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>spring-milestones</id>
|
|
|
|
|
<name>Spring Milestones</name>
|
|
|
|
|
<url>https://repo.spring.io/milestone</url>
|
|
|
|
|
<snapshots>
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
</snapshots>
|
|
|
|
|
</repository>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>spring-snapshots</id>
|
|
|
|
|
<name>Spring Snapshots</name>
|
|
|
|
|
<url>https://repo.spring.io/snapshot</url>
|
|
|
|
|
<releases>
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
</releases>
|
|
|
|
|
</repository>
|
|
|
|
|
</repositories>
|
|
|
|
|
<pluginRepositories>
|
|
|
|
|
<pluginRepository>
|
|
|
|
|
<id>spring-milestones</id>
|
|
|
|
|
<name>Spring Milestones</name>
|
|
|
|
|
<url>https://repo.spring.io/milestone</url>
|
|
|
|
|
<snapshots>
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
</snapshots>
|
|
|
|
|
</pluginRepository>
|
|
|
|
|
<pluginRepository>
|
|
|
|
|
<id>spring-snapshots</id>
|
|
|
|
|
<name>Spring Snapshots</name>
|
|
|
|
|
<url>https://repo.spring.io/snapshot</url>
|
|
|
|
|
<releases>
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
</releases>
|
|
|
|
|
</pluginRepository>
|
|
|
|
|
</pluginRepositories>
|
|
|
|
|
<repositories>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>spring-milestones</id>
|
|
|
|
|
<name>Spring Milestones</name>
|
|
|
|
|
<url>https://repo.spring.io/milestone</url>
|
|
|
|
|
<snapshots>
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
</snapshots>
|
|
|
|
|
</repository>
|
|
|
|
|
<repository>
|
|
|
|
|
<id>spring-snapshots</id>
|
|
|
|
|
<name>Spring Snapshots</name>
|
|
|
|
|
<url>https://repo.spring.io/snapshot</url>
|
|
|
|
|
<releases>
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
</releases>
|
|
|
|
|
</repository>
|
|
|
|
|
</repositories>
|
|
|
|
|
<pluginRepositories>
|
|
|
|
|
<pluginRepository>
|
|
|
|
|
<id>spring-milestones</id>
|
|
|
|
|
<name>Spring Milestones</name>
|
|
|
|
|
<url>https://repo.spring.io/milestone</url>
|
|
|
|
|
<snapshots>
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
</snapshots>
|
|
|
|
|
</pluginRepository>
|
|
|
|
|
<pluginRepository>
|
|
|
|
|
<id>spring-snapshots</id>
|
|
|
|
|
<name>Spring Snapshots</name>
|
|
|
|
|
<url>https://repo.spring.io/snapshot</url>
|
|
|
|
|
<releases>
|
|
|
|
|
<enabled>false</enabled>
|
|
|
|
|
</releases>
|
|
|
|
|
</pluginRepository>
|
|
|
|
|
</pluginRepositories>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|
|
|
|
|
</project>
|