Skip to content

Commit

Permalink
docs: add info about beta stage support of protobuf for Scala and Java (
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTereshenkov authored Jan 6, 2023
1 parent 7f00df2 commit 5b70f3f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/markdown/Java and Scala/jvm-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,21 @@ junit_tests(
)
```

Protobuf
--------

There's support for [ScalaPB](https://scalapb.github.io/) and [protoc Java generated code](https://developers.google.com/protocol-buffers/docs/reference/java-generated), currently in beta stage. To enable them, activate the relevant backends in `pants.toml`:

```toml
[GLOBAL]
backend_packages = [
"pants.backend.experimental.codegen.protobuf.scala",
"pants.backend.experimental.codegen.protobuf.java",
]
```

This adds the new `protobuf_source` target, which you can confirm by running `./pants help protobuf_source`.

Lint and Format
---------------

Expand Down

0 comments on commit 5b70f3f

Please sign in to comment.