Protobuf Plugin for Gradle
Major change:
(group, name, version, classifier, ext)
eg com.example:example-plugin:0.0.0-rc0+experimental
(#31)This is a bug-fix release. The protobuf
dependency is now transitive (#116)
No longer add javanano
by default for Android projects. This is to align with the release of Protobuf 3.0.0 which promotes protobuf-lite instead of nano as the recommended flavor for Android. Please refer to README.md (look for "javalite").
If you want to continue using nano, you will need to add it manually, for example:
protobuf {
generateProtoTasks {
all()*.builtins {
javanano { }
}
}
}
Improved performance of configuration phase (google/protobuf-gradle-plugin#42)
This release fixes the breakage with Gradle 2.12.
Gradle 2.12 is now the minimum supported version.
This is a bug fix release.
Changes:
plugins { }
DSL is now supported, e.g.,plugins {
id "java"
id "com.google.protobuf" version "0.7.4"
}
Added a set a new options under descriptorSetOptions
of the code generation task:
// Allows to override the default for the descriptor set location
task.descriptorSetOptions.path =
"${projectDir}/build/descriptors/{$task.sourceSet.name}.dsc"
// If true, the descriptor set will contain line number information
// and comments. Default is false.
task.descriptorSetOptions.includeSourceInfo = true
// If true, the descriptor set will contain all transitive imports and
// is therefore self-contained. Default is false.
task.descriptorSetOption.includeImports = true