Skip to content

Commit

Permalink
Merge pull request #15582 from rsvoboda/grpc-getting-started
Browse files Browse the repository at this point in the history
gRPC guide: syntax highlighting for proto example, small fixes
  • Loading branch information
michalszynkiewicz authored Mar 9, 2021
2 parents d1e3a28 + 6887f8e commit 0c99222
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/main/asciidoc/grpc-getting-started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Please note that no additional task/goal is required for the Gradle plugin.
With this configuration, you can put your service and message definitions in the `src/main/proto` directory.
`quarkus-maven-plugin` will generate Java files from your `proto` files.

`quarkus-maven-plugin` retrieves a version of `protoc` (the protobuf compiler) from Maven repositories. The retrieved version matches your operating system and CPU architecture.```
`quarkus-maven-plugin` retrieves a version of `protoc` (the protobuf compiler) from Maven repositories. The retrieved version matches your operating system and CPU architecture.
If this retrieved version does not work in your context, you can download the suitable binary and specify the location via
`-Dquarkus.grpc.protoc-path=/path/to/protoc`.

Expand All @@ -64,7 +64,7 @@ Alternatively to using the `generate-code` goal of the `quarkus-maven-plugin`, y
Let's start with a simple _Hello_ service.
Create the `src/main/proto/helloworld.proto` file with the following content:

[source]
[source,javascript]
----
syntax = "proto3";
Expand Down Expand Up @@ -278,7 +278,7 @@ public class ExampleResource {
We need to configure the application to indicate where the `hello` service is found.
In the `src/main/resources/application.properties` file, add the following property:

[source,text]
[source,properties]
----
quarkus.grpc.clients.hello.host=localhost
----
Expand Down

0 comments on commit 0c99222

Please sign in to comment.