Common protos
This page lists packages that contain compiled ScalaPB classes for common third-party protobuf libraries.
Each of these packages require you to add two library dependencies in your build.sbt
:
The dependency with the
"protobuf"
unpacks the protos from the jar. This allows the protos in your own project to "import" the third-party protos (without this, protoc would fail with an error like:"Import was not found or had errors"
)The generated code for your protos, may reference types that are defined in the protos in that jar. That requires a Scala class for them available in the classpath. This is accomplished by adding the library as a normal dependency.
If you don't have any proto files that import the common protos, then you can omit the "protobuf"
dependency.
#
Adding new packagesIf you don't see your favorite third-party proto package here, and there is already a maven package for it that provides the proto files (with possibly Java generated classes), you can send a pull request to common-protos to have it added. See instruction on the ScalaPB Common Protos project page on Github.
#
Available packages#
proto-google-common-protosScalaPB 0.11.x:
ScalaPB 0.10.x:
ScalaPB 0.9.x:
#
proto-google-cloud-pubsub-v1ScalaPB 0.11.x:
ScalaPB 0.10.x:
ScalaPB 0.9.x:
#
pgv-protoScalaPB 0.11.x:
ScalaPB 0.10.x:
ScalaPB 0.9.x:
footer