From 043dbda466a4cbd21ca35d3cec1bd8db058dcae9 Mon Sep 17 00:00:00 2001 From: haind6 Date: Fri, 7 Jun 2024 18:02:39 +0700 Subject: [PATCH] chore: fix bug generate descriptor --- README.md | 4 ++++ gateway-service/build.gradle | 4 +++- gateway-service/src/main/resources/application.yml | 3 --- 3 files changed, 7 insertions(+), 4 deletions(-) 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: