Protobuf Gradle Plugin Versions Save

Protobuf Plugin for Gradle

v0.8.14

3 years ago

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

  • @gavra0

v0.8.13

3 years ago

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

  • @rpalcolea
  • @kazuki-ma
  • @gavra0
  • @eskatos
  • @stoyicker
  • @enbandari
  • @dcabasson

v0.8.12

4 years ago

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

Thanks to contributors

  • @eskatos
  • @jd3nn1s

v0.8.11

4 years ago

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 use java-library plugin. (#366)

Dependencies

  • Bumped osdetector plugin version to 1.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

  • @kshithijiyer
  • @stkent
  • @lptr
  • @eskatos

v0.8.10

4 years ago

Fixed #295 ("WARNING: API 'variant.getJavaCompile()' is obsolete" with Android plugin) for real.

v0.8.9

4 years ago

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

  • @runningcode
  • @marcoferrer

v0.8.8

5 years ago

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)

v0.8.7

5 years ago

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)

v0.8.6

5 years ago

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)

v0.8.5

6 years ago

Fixed the bug (#212) introduced in 0.8.4 that build would fail if current directory or any proto source path contain space(s).