Protocol Buffer Java API - shaded version 3.11.1. Available on Maven Central
- http://central.maven.org/maven2/com/github/os72/protobuf-java-shaded-3-11-1/0.9/
- http://central.maven.org/maven2/com/github/os72/protobuf-java-util-shaded-3-11-1/0.9/
- http://central.maven.org/maven2/com/github/os72/protobuf-javalite-shaded-3-11-1/0.9/
Provides protobuf-java 3.11.1 in a separate namespace com.github.os72.protobuf_3_11_1
to help resolve runtime compatibility issues when other protobuf-java versions are needed in the same application
See also
- https://github.com/os72/protoc-jar
- https://github.com/os72/protoc-jar-maven-plugin
- https://github.com/google/protobuf
- Use package dependency
protobuf-java-shaded-3-11-1
instead ofprotobuf-java
- Use Java namespace
com.github.os72.protobuf_3_11_1
instead ofcom.google.protobuf
Note that the namespace replacement must be applied to code generated by the protoc compiler as well. protoc-jar
(option --java_shaded_out) and protoc-jar-maven-plugin
(output type java-shaded) support this feature out of the box
<dependency>
<groupId>com.github.os72</groupId>
<artifactId>protobuf-java-shaded-3-11-1</artifactId>
<version>0.9</version>
</dependency>
<dependency>
<groupId>com.github.os72</groupId>
<artifactId>protobuf-java-util-shaded-3-11-1</artifactId>
<version>0.9</version>
</dependency>
<dependency>
<groupId>com.github.os72</groupId>
<artifactId>protobuf-javalite-shaded-3-11-1</artifactId>
<version>0.9</version>
</dependency>