Skip to content

Commit

Permalink
chore: fix bug generate descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
haind6 committed Jun 7, 2024
1 parent ba9a4e7 commit 043dbda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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
```
Expand Down
4 changes: 3 additions & 1 deletion gateway-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 0 additions & 3 deletions gateway-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ spring:
protoFile: classpath:greeting.proto
service: GreetingService
method: Hello
httpclient:
ssl:
use-insecure-trust-manager: true

management:
endpoints:
Expand Down

0 comments on commit 043dbda

Please sign in to comment.