Releases: google/protobuf-gradle-plugin
Releases · google/protobuf-gradle-plugin
v0.8.14 is released
Fixed bugs
- Link only generated Java and Kotlin to compilation task by default (#375). Fixes the issue in projects with no Java/Kotlin code (with Java plugin applied, maybe implicitly, such as the Scala plugin) that compileJava task is triggered with "no source files" error.
- Support packaging and extracting protos in Android aar (#440, #443). Functionalities of importing protos from Android AAR dependencies is broken in the previous release. It is fixed now.
- Avoid storing variantName property in the task (#448). Fixes the issue of internal warning being triggered by Gradle's configuration caching trying to serialize properties in GenerateProtoTask.
Thanks to contributors
v0.8.13 is released
New features
- This plugin now partially supports Gradle configuration cache (requires Gradle 6.6+). It works to some extent, but there are still problems. (#406, #408, #413)
- Added support for using JAR protoc plugins. (#423)
Fixed bugs
- Fixed the breakage for setting DescriptorSetOptions.path with a string literal in Kotlin DSL. (#394)
Improvements
- Improved support for Android library projects by packaging proto files into Android archives (.aar). (#414)
- Update: this is still broken in 0.8.13 release, the next release should fix it.
Thanks to contributors
v0.8.12 is released
Fixed bugs
- Always include extract protos in compiled archive. (#389) Previously processResourcesTask runs in parallel with extractProtoTasks, which would potentially lead to Jars without including protos from dependencies.
Improvements
- The plugin now is compatible with Gradle 6.1 Instant Execution. (#381)
Thanks to contributors
v0.8.11 is released
Compatibility changes
- The plugin now requires Gradle 5.6+ (corresponding Android plugin version is 3.5.0+ if using for Android).
Fixed bugs
- Fixed issue of consumer projects not being able to extract proto files from
implementation
dependencies that usejava-library
plugin. (#366)
Dependencies
- Bumped
osdetector
plugin version to1.6.2
. - Bumped Guava version to
27.0.1-jre
.
Improvements
- Support protobuf plugins with artifacts that have no extension. (#335)
- The plugin now is able to work with Gradle 6.0. (#364, #365)
Documentation
- Updated documentation for using protobuf javalite code generation option for protobuf version after
3.8.0
. (#323)
Thanks to contributors
v0.8.10 is released
Fixed #295 ("WARNING: API 'variant.getJavaCompile()' is obsolete" with Android plugin) for real.
v0.8.9 is released
Fixed bugs:
- Make generateProtoTask resolve file/directory lazily to allow including build time proto (#317, resolves #313)
Minor changes:
- Recommend files() instead of fileTree() in
protobuf dependency
(#294) - Use Relative Sensitivity for GenerateProtoTask, use name only sensitivity for classpath. (#293)
Thanks to contributors
0.8.8 now released
This release includes a few fixes and resolved the breakage with Gradle 5.0+ and Android Plugin 2.5+. The oldest supported Gradle version is now raised to 3.0. Below is the comprehensive list of changes:
- Update to stable Kotlin DSL 1.0.4 (included in Gradle 5.0) (#275 @marcoferrer)
- Fix support with Gradle 5.x/Android 2.5+; add Gradle 5.1 and drop Gradle 3.0 in tests. (#287)
- Refactor GenerateProtoTask's inputs (#291)
- Use new public API to create SourceDirectorySet available since Gradle 5.0 (#292)
0.8.7 released
Compatibility change
The plugin now requires at least Java 8 to work.
New features
- The
protobuf
configuration now supports extracting protos from*.tgz
files (#266) - A cleaner Kotlin DSL (#262). Check out the example project.
- You can now reference protoc plugins without defining it. It will make protoc to search the plugin in system search paths. (#270)
0.8.6 has been released
Fixed issues
- Moved away from using android private API: variant.variantData (#235). This made the plugin able to work with Android Studio 3.2.0-beta1.
- Detect Android project in a more reliable way (#237)
- Fixed an issue that generated unit test source files were not being picked up by Android Studio (#229)
Improvements
- Easier to debug android build issues (#233)
0.8.5 released
Fixed the bug (#212) introduced in 0.8.4 that build would fail if current directory or any proto source path contain space(s).