Protobuf Gradle Plugin Versions Save

Protobuf Plugin for Gradle

v0.8.4

6 years ago

Major changes:

  • Add com.android.feature to the set of supported plugins (#192)
  • Make IntelliJ aware of *.proto and generated *.java files (#193), #198)
  • Support for Kotlin (#196, #208) and Kotlin Android (#201)
  • Support for Android local unit tests (#209)

Minor changes:

  • Fix Gradle warning related to TaskInput.file API (#172)
  • Avoid calling protoc with too many arguments (mainly affecting Windows) (#174)

v0.8.3

6 years ago

Major change:

  • Dependencies can now be expressed as a tuple of (group, name, version, classifier, ext) eg com.example:example-plugin:0.0.0-rc0+experimental (#31)

v0.8.2

6 years ago

Major change:

  • Add support for Android Gradle Plugin 2.5 (#121)

Minor change:

  • Ensure reproducible output from generate task (#119)

v0.8.1

7 years ago

This is a bug-fix release. The protobuf dependency is now transitive (#116)

v0.8.0

7 years ago

Behavioral change

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 { }
    }
  }
}

Bug fixes

  • Stop complaining about Gradle version on 3.0.
  • Stop using deprecated API on Gradle 3.0

Logistics

  • Refactored tests to use TestKit. No longer needs to install locally before running tests. (by @ngyukman)
  • Travis support (by @jaredsburrows)

v0.7.7

8 years ago

Improved performance of configuration phase (google/protobuf-gradle-plugin#42)

v0.7.6

8 years ago

This release fixes the breakage with Gradle 2.12.

Gradle 2.12 is now the minimum supported version.

v0.7.5

8 years ago

This is a bug fix release.

  • Fixed #58. Now protos in the test source set is able to import protos from the main source set.
  • Fixed NPE on non-Android Gradle projects in IntelliJ (#60)

v0.7.4

8 years ago

Changes:

  • It's no longer a requirement that Java/Android plugins are applied before the protobuf plugin. The plugins can be applied in arbitrary order.
  • The Gradle plugins { } DSL is now supported, e.g.,
plugins {
  id "java"
  id "com.google.protobuf" version "0.7.4"
}
  • Requires at least Gradle 2.4 and Java 7

v0.7.3

8 years ago

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