Skip to content
forked from os72/protoc-jar

About

Protocol Buffers compiler - executable JAR and API

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protoc-jar

Protocol Buffers compiler - executable JAR and API. Available on Maven Central

Simple convenience JAR that embeds protoc compiler binaries for Linux, Mac/OSX, and Windows. See the Protocol Buffers site for details: https://code.google.com/p/protobuf/

Maven code generation plugin based on this: https://github.com/os72/protoc-jar-maven-plugin

Usage - executable

$ java -jar protoc-jar-2.4.1.0.jar --version
protoc-jar: executing: [C:\cygwin64\tmp\protoc8420137375795222513.exe, --version]
libprotoc 2.4.1

$ java -jar protoc-jar-2.5.0.0.jar --version
protoc-jar: executing: [C:\cygwin64\tmp\protoc4520968910109233475.exe, --version]
libprotoc 2.5.0

Usage - API

import com.github.os72.protocjar.Protoc;
...
String[] args = {"--help"};
Protoc.runProtoc(args);

Maven dependency

For protobuf 2.4.1

<dependency>
  <groupId>com.github.os72</groupId>
  <artifactId>protoc-jar</artifactId>
  <version>2.4.1.0</version>
</dependency>

For protobuf 2.5.0

<dependency>
  <groupId>com.github.os72</groupId>
  <artifactId>protoc-jar</artifactId>
  <version>2.5.0.0</version>
</dependency>

About

Protocol Buffers compiler - executable JAR and API

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages