Skip to content

Releases: google/protobuf-gradle-plugin

0.8.4 released

02 Feb 01:38
Compare
Choose a tag to compare

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)

0.8.3 released

21 Aug 21:44
Compare
Choose a tag to compare

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)

0.8.2 released

28 Jul 16:23
Compare
Choose a tag to compare

Major change:

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

Minor change:

  • Ensure reproducible output from generate task (#119)

0.8.1 released

16 Feb 18:38
Compare
Choose a tag to compare

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

0.8.0 released

18 Aug 14:49
Compare
Choose a tag to compare

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)

0.7.7 released

03 May 23:32
Compare
Choose a tag to compare

Improved performance of configuration phase (#42)

0.7.6 released

15 Mar 21:07
Compare
Choose a tag to compare

This release fixes the breakage with Gradle 2.12.

Gradle 2.12 is now the minimum supported version.

0.7.5 released

05 Mar 23:47
Compare
Choose a tag to compare

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)

0.7.4 released

27 Jan 01:38
Compare
Choose a tag to compare

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

0.7.3 released

04 Jan 22:12
Compare
Choose a tag to compare

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