diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 6c8c0e0..d58dfb7 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -1 +1,19 @@ -distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +wrapperVersion=3.3.2 +distributionType=only-script +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip diff --git a/pom.xml b/pom.xml index 921c79d..eef9c12 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,7 @@ spring-grpc-core spring-grpc-test spring-grpc-spring-boot-autoconfigure + samples diff --git a/samples/grpc-server/pom.xml b/samples/grpc-server/pom.xml new file mode 100644 index 0000000..65159f4 --- /dev/null +++ b/samples/grpc-server/pom.xml @@ -0,0 +1,66 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 3.3.3 + + + org.springframework.grpc + grpc-server-sample + 0.1.0-SNAPSHOT + Spring Grpc Server Sample + Demo project for Spring Grpc + + + + + + + + + + + + + + + 17 + + + + org.springframework.grpc + spring-grpc-spring-boot-autoconfigure + 0.1.0-SNAPSHOT + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + + diff --git a/samples/grpc-server/src/main/java/org/springframework/grpc_server/GrpcServerApplication.java b/samples/grpc-server/src/main/java/org/springframework/grpc_server/GrpcServerApplication.java new file mode 100644 index 0000000..9d428ca --- /dev/null +++ b/samples/grpc-server/src/main/java/org/springframework/grpc_server/GrpcServerApplication.java @@ -0,0 +1,13 @@ +package org.springframework.grpc_server; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class GrpcServerApplication { + + public static void main(String[] args) { + SpringApplication.run(GrpcServerApplication.class, args); + } + +} diff --git a/samples/grpc-server/src/main/resources/application.properties b/samples/grpc-server/src/main/resources/application.properties new file mode 100644 index 0000000..566605a --- /dev/null +++ b/samples/grpc-server/src/main/resources/application.properties @@ -0,0 +1 @@ +spring.application.name=grpc-server diff --git a/samples/grpc-server/src/test/java/org/springframework/grpc_server/GrpcServerApplicationTests.java b/samples/grpc-server/src/test/java/org/springframework/grpc_server/GrpcServerApplicationTests.java new file mode 100644 index 0000000..6a6e6f2 --- /dev/null +++ b/samples/grpc-server/src/test/java/org/springframework/grpc_server/GrpcServerApplicationTests.java @@ -0,0 +1,13 @@ +package org.springframework.grpc_server; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class GrpcServerApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/samples/pom.xml b/samples/pom.xml new file mode 100644 index 0000000..56a037b --- /dev/null +++ b/samples/pom.xml @@ -0,0 +1,34 @@ + + 4.0.0 + + + org.springframework.grpc + spring-grpc + 0.1.0-SNAPSHOT + + + org.springframework.grpc + parent-samples + 0.1.0-SNAPSHOT + pom + Parent Demo + + + grpc-server + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + + \ No newline at end of file diff --git a/spring-grpc-core/pom.xml b/spring-grpc-core/pom.xml index bf920fd..ce39f37 100644 --- a/spring-grpc-core/pom.xml +++ b/spring-grpc-core/pom.xml @@ -28,7 +28,20 @@ io.grpc - grpc-core + grpc-netty + + + io.grpc + grpc-netty-shaded + true + + + io.grpc + grpc-protobuf + + + io.grpc + grpc-stub diff --git a/spring-grpc-test/pom.xml b/spring-grpc-test/pom.xml index d8f8ea0..b6986dd 100644 --- a/spring-grpc-test/pom.xml +++ b/spring-grpc-test/pom.xml @@ -37,6 +37,10 @@ spring-grpc-core ${project.version} + + io.grpc + grpc-testing + org.springframework.boot