Merge pull request #6115 from haon4/javalite_doc
Update instruction on how to use JavaLite runtime
This commit is contained in:
commit
b4f193788c
12
java/lite.md
12
java/lite.md
@ -23,8 +23,16 @@ You can generate Java Lite code for your .proto files:
|
|||||||
Note that "optimize_for = LITE_RUNTIME" option in proto file is deprecated
|
Note that "optimize_for = LITE_RUNTIME" option in proto file is deprecated
|
||||||
and will not have any effect any more.
|
and will not have any effect any more.
|
||||||
|
|
||||||
The latest Java Lite runtime is not yet fully released in any official
|
Include the generated Java files in your project and add a dependency on the
|
||||||
version. You will need to build from our master's branch in order to use it.
|
protobuf Java runtime. If you are using Maven, use the following:
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.protobuf</groupId>
|
||||||
|
<artifactId>protobuf-javalite</artifactId>
|
||||||
|
<version>3.8.0</version>
|
||||||
|
</dependency>
|
||||||
|
```
|
||||||
|
|
||||||
For the older version of Java Lite (v3.0.0), please refer to:
|
For the older version of Java Lite (v3.0.0), please refer to:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user