Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
21ebeed2
Unverified
Commit
21ebeed2
authored
Sep 06, 2018
by
Kyle Krueger
Committed by
GitHub
Sep 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md with gradle instructions for java
parent
fd90f453
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
README.md
java/README.md
+13
-1
No files found.
java/README.md
View file @
21ebeed2
...
...
@@ -13,7 +13,11 @@ generate Java code for your .proto files:
$ protoc --java_out=${OUTPUT_DIR} path/to/your/proto/file
Include the generated Java files in your project and add a dependency on the
protobuf Java runtime. If you are using Maven, use the following:
protobuf Java runtime.
### Maven
If you are using Maven, use the following:
```
xml
<dependency>
...
...
@@ -37,6 +41,14 @@ protobuf-java-util package:
</dependency>
```
### Gradle
If you are using Gradle, add the following to your
`build.gradle`
file's dependencies:
```
compile 'com.google.protobuf:protobuf-java:3.6.1'
```
Again, be sure to check that the version number maches (or is newer than) the version number of protoc that you are using.
### Use Java Protocol Buffers on Android
For Android users, it's recommended to use protobuf Java Lite runtime because
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment