|
75 | 75 | <code-block lang="Kotlin"> |
76 | 76 | rpc { |
77 | 77 | grpc { |
78 | | - // enforces additional checks on the project configuration |
| 78 | + // Enforce additional checks on the project configuration |
79 | 79 | enabled = true |
80 | 80 |
|
81 | | - // Quick access to a Locator and Options |
| 81 | + // Quick access to a `Locator` and `Options` |
82 | 82 | // for the kotlinx-rpc Protobuf plugin |
83 | 83 | plugin { |
84 | 84 | options { |
85 | | - // add/change options |
| 85 | + // Add or modify options |
86 | 86 | option("debugOutput=myFile.txt") |
87 | 87 | } |
88 | 88 |
|
89 | 89 | locator { |
90 | | - // change artifact coordinates, for example |
| 90 | + // Override artifact coordinates |
91 | 91 | artifact = "some-other:artifact:version" |
92 | 92 | } |
93 | 93 | } |
|
114 | 114 | } |
115 | 115 | </code-block> |
116 | 116 | <p> |
117 | | - If you want to, you can still use <code>protobuf</code> extension to access the configuration. |
118 | | - The following is the equivalent for the code above, but using the <code>protobuf</code> extension: |
| 117 | + You can still use <code>protobuf</code> extension to access the configuration. |
| 118 | + The following is the equivalent for the above code using the <code>protobuf</code> extension: |
119 | 119 | </p> |
120 | 120 | <code-block lang="Kotlin"> |
121 | 121 | protobuf { |
|
146 | 146 | } |
147 | 147 | </code-block> |
148 | 148 | <p> |
149 | | - Minimum recommended configuration looks like this: |
| 149 | + The minimum recommended configuration looks like this: |
150 | 150 | </p> |
151 | 151 | <code-block lang="Kotlin"> |
152 | 152 | rpc { |
|
162 | 162 | <li><code>java</code> - protobuf Java declarations</li> |
163 | 163 | <li><code>grpc</code> - gRPC Java declarations</li> |
164 | 164 | <li><code>grpckt</code> - gRPC Kotlin wrappers for Java</li> |
165 | | - <li><code>kotlinx-rpc</code> - pur wrappers for all of the above</li> |
| 165 | + <li><code>kotlinx-rpc</code> - our wrappers for all of the above</li> |
166 | 166 | </list> |
167 | 167 | <p> |
168 | | - You won't need to use the first three directly, only the declarations from the <code>kotlinx-rpc</code> |
169 | | - source set are intended to be used. |
| 168 | + Only the declarations from the <code>kotlinx-rpc</code> source set are intended to be used. |
170 | 169 | </p> |
171 | 170 | <p> |
172 | | - Source sets are generated into <code>$BUILD_DIR/generated/source/proto/main</code> directory |
| 171 | + Source sets are generated into the <code>$BUILD_DIR/generated/source/proto/main</code> directory |
173 | 172 | unless specified otherwise. |
174 | 173 | </p> |
175 | 174 | </chapter> |
|
0 commit comments