diff --git a/README.md b/README.md index 09f4e26..4f5c233 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ This project is a simple example of how to use gRPC with Spring Cloud Gateway, w ```shell gradle build ``` +or + ```shell .\gradlew.bat build ``` @@ -21,6 +23,8 @@ This project is a simple example of how to use gRPC with Spring Cloud Gateway, w ```shell gradle bootRun --parallel ``` +or + ```shell .\gradlew.bat bootRun --parallel ``` diff --git a/gateway-service/build.gradle b/gateway-service/build.gradle index 6245001..b38014a 100644 --- a/gateway-service/build.gradle +++ b/gateway-service/build.gradle @@ -59,12 +59,14 @@ protobuf { generateProtoTasks { all().configureEach { task -> task.generateDescriptorSet = true + task.descriptorSetOptions.path = + "${projectDir}/build/descriptors/descriptor_set.desc" } } } processResources { - from ('/build/generated/source/proto/main/descriptor_set.desc') { + from("${projectDir}/build/descriptors/descriptor_set.desc") { into '.' } dependsOn('generateProto') diff --git a/gateway-service/src/main/resources/application.yml b/gateway-service/src/main/resources/application.yml index bb58acc..f60bf3c 100644 --- a/gateway-service/src/main/resources/application.yml +++ b/gateway-service/src/main/resources/application.yml @@ -17,9 +17,6 @@ spring: protoFile: classpath:greeting.proto service: GreetingService method: Hello - httpclient: - ssl: - use-insecure-trust-manager: true management: endpoints: