https://github.com/battermann/scalapb-test
https://github.com/battermann/scalapb-test
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/battermann/scalapb-test
- Owner: battermann
- Created: 2020-07-15T13:20:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T13:27:18.000Z (almost 6 years ago)
- Last Synced: 2025-02-04T21:20:21.992Z (over 1 year ago)
- Language: Scala
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scalapb-test
Generating gRPC stubs should be enabled by default according to the documentation: https://scalapb.github.io/sbt-settings.html#grpc
But it looks like it is not. It needs to be explicitly enabled. With the line 15 in the `build.sbt` it doesn't work:
```scala
scalapb.gen() -> (sourceManaged in Compile).value / "scalapb"
```
The object `com.example.protos.hello.GreeterGrpc` is not generated.
Like this it works:
```scala
scalapb.gen(grpc = true) -> (sourceManaged in Compile).value / "scalapb"
```
Now the object `com.example.protos.hello.GreeterGrpc` is not generated.