No description, website, or topics provided.
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
build/def/org/jerkar/api/protobuf
src/main/java/org/jerkar/api/protobuf
.classpath
.gitignore
.project
LICENSE
README.md

README.md

Maven Central

Jerkar library for Protobuf

This provides a library to use the protobuf compiler in your Java builds.

How to use

First, Make sure jerkar is installed.

[Protobuff compiler] (https://developers.google.com/protocol-buffers/docs/downloads) should be installed as well.

Then add the JkImport annotation to your Build script and get the plugin.

@JkImport("org.jerkar:protobuf-plugin:[version]")
public class Build extends JkJavaBuild {
    ...
	
	@Override
	protected void configure() {
		this.plugins().get(JkPluginProtocolBuffer.class);
	}
}

That's all. Now, when building your project, files under `src/main/proto' will be compiled to java sources prior java compilation phase.