Sign in to edit and +1 items.
Login required
Download

Protocol Buffers

(1)
Author(s) Andres Almiray (aalmiray)
Current Release 0.2   (2 years ago)
Grails Version 1.2 > *
Tags
Dependency
compile ":protobuf:0.2"
Last updated by admin 2 years ago
grails install-plugin protobuf
Last updated by aalmiray 2 years ago

Description

Provides integration with Google Protocol Buffers – a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more.

Usage

This plugin requires you to have a valid protoc compiler installed. Follow the installation instructions laid out in the java tutorial. Once installed you must instruct the build where to locate the protoc executable. Create a file named BuildConfig.groovy (if it doesn't exist) at grails-app/conf with the following content

google.protobuf.protoc = "/usr/local/bin/protoc" // change this path to your own path

Place your .proto sources at $basedir/src/protobuf. You may call the protoc command in order to compile protobuf sources before compiling any other sources.

Scripts

  • protoc - compiles protobuf sources (.proto) then compiles the generated java sources.

History

VersionDateNotes
0.202-02-10Fix automatic compilation of .proto sources
0.111-18-09Initial release
Last updated by admin 2 years ago
Last updated by admin 2 years ago