-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle plugin #176
Comments
This plugin adds support for generating Java code from .protos using the Wire compiler to Android library/application projects. For basic usage, add .proto files to src/main/proto and apply the 'com.squareup.wire' plugin. More customization is available via the 'wire' extension on any sourceSet. Fixes square#176
This plugin adds support for generating Java code from .protos using the Wire compiler to Android library/application projects. For basic usage, add .proto files to src/main/proto and apply the 'com.squareup.wire' plugin. More customization is available via the 'wire' extension on any sourceSet. Fixes square#176
Are there any plans to publish this plugin to Gradle's plugin registry? |
Not at this time. On Tue, Oct 25, 2016, 2:41 PM Devesh Parekh notifications@github.com
|
Since this implementation of protobuf was written with Android in mind, it's fitting that we provide a first-party plugin for Gradle.
The plugin will be released to Maven central along with the other Wire artifacts as
wire-gradle-plugin
. The plugin ID would becom.squareup.wire
. We should also look at deploying to Gradle's new plugin registry which might allow skipping the actual dependency declaration in the future.Compiler options will be exposed through an extension object named
wire
. Examples of this would be generating code for options, extension registry name, etc. For example:Open questions:
src/main/proto
) and not ones pulled in from external sources either on the classpath or via HTTP, etc.?The text was updated successfully, but these errors were encountered: