• Home
  • Raw
  • Download

Lines Matching +full:java +full:- +full:version

1 # Protocol Buffers - Google's data interchange format
5 https://developers.google.com/protocol-buffers/
7 ## Use Java Protocol Buffers
9 To use protobuf in Java, first obtain the protocol compiler (a.k.a., protoc,
11 generate Java code for your .proto files:
13 $ protoc --java_out=${OUTPUT_DIR} path/to/your/proto/file
15 Include the generated Java files in your project and add a dependency on the
16 protobuf Java runtime.
25 <artifactId>protobuf-java</artifactId>
26 <version>3.6.1</version>
30 Make sure the version number of the runtime matches (or is newer than) the
31 version number of the protoc.
34 protobuf-java-util package:
39 <artifactId>protobuf-java-util</artifactId>
40 <version>3.6.1</version>
48 compile 'com.google.protobuf:protobuf-java:3.6.1'
50 Again, be sure to check that the version number maches (or is newer than) the version number of pro…
52 ### Use Java Protocol Buffers on Android
54 For Android users, it's recommended to use protobuf Java Lite runtime because
55 of its smaller code size. Java Lite runtime also works better with Proguard
56 because it doesn't rely on Java reflection and is optimized to allow as much
57 code stripping as possible. You can following these [instructions to use Java
60 ### Use Java Protocol Buffers with Bazel
62 Bazel has native build rules to work with protobuf. For Java, you can use the
69 Most users should follow the instructions above to use protobuf Java runtime.
70 If you are contributing code to protobuf or want to use a protobuf version
74 ### Build from Source - With Maven
82 distribution, make sure that it is the same version as this package.
85 $ protoc --version
110 * protobuf-java: The core Java Protocol Buffers library. Most users only
112 * protobuf-java-util: Utilities to work with protos. It contains JSON support
113 as well as utilities to work with proto3 well-known
116 ### Build from Source - Without Maven
125 version as this package. If in doubt, run:
127 $ protoc --version
132 2) Invoke protoc to build DescriptorProtos.java:
134 $ protoc --java_out=core/src/main/java -I../src \
137 3) Compile the code in core/src/main/java using whatever means you prefer.
143 * Protobuf minor version releases are backwards-compatible. If your code
144 can build/run against the old version, it's expected to build/run against
145 the new version as well. Both binary compatibility and source compatibility
146 are guaranteed for minor version releases if the user follows the guideline
149 * Protobuf major version releases may also be backwards-compatbile with the
150 last release of the previous major version. See the release notice for more
159 * Deprecated non-experimental APIs will be removed two years after the release
173 in minor version releases.
180 https://developers.google.com/protocol-buffers/