NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Maven Central
Maven Central, #1413 by repository stars
Gradle build plugin to handle Protocol Buffers automated code generation and compilation
Latest stable
0.10.1
Last release 18 days ago
04 Nov 2026
Release timing varies
gaps range from 3 months to 1.7 years
Most releases are documented
notes for 39 of 46 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
46 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Remove deprecated Configuration.setVisible(boolean) calls (Gradle 9.8) by @breskeby in https://github.com/google/protobuf-gradle-plugin/pull/816
Full Changelog: https://github.com/google/protobuf-gradle-plugin/compare/v0.10.0...v0.10.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Make generatedFilesBaseDir read-only by @ejona86 in https://github.com/google/protobuf-gradle-plugin/pull/808 . It was deprecated in v0.9.2
Full Changelog: https://github.com/google/protobuf-gradle-plugin/compare/v0.9.6...v0.10.0
Inline deprecated constant value by @tresat in https://github.com/google/protobuf-gradle-plugin/pull/779 . This removes a reference to a Gradle-intern…
Full Changelog: https://github.com/google/protobuf-gradle-plugin/compare/v0.9.5...v0.9.6
Clean output directory before extracting protos (#735). This was then enhanced to sync instead of delete
generated/sources/proto; plural, not singular) (#755)@holgerstolzenberg @Vampire @wfhartford
Fix a bug that codegen plugins from system search path no longer works.
DuplicatesStrategy.FAIL. (#718)Fix "KotlinCompile is not a subclass of the given type org.gradle.api.tasks.SourceTask" regression in 0.9.2
GenerateProtoTask.getIsTest() in the stack trace (#692)buildDir (#678). buildDir reading is now delayed until task configuration, so care is still needed if you modify buildDir.Provider.forUseAtConfigurationTime() for Gradle >= 7.4Emulate and deprecate generatedFilesBaseDir (#636). generatedFilesBaseDir no longer changes the output directory directly. Instead, the default direct…
Fixed a regression from 0.8.x where the proto source set filters were not being applied, causing non-.proto files to be passed to protoc (#621). This
.proto files to be passed to protoc (#621). This fixes errors of the form No syntax specified for the proto file: where the file listed is not a .proto file.Removed usage of deprecated GUtil
Querying the mapped value of provider(interface java.util.Set) before task ':project:processResources' has completed is not supportedconfigureEach instead of each within generateProtoTasks {}, but it is beneficial as long as you are not using any IDE pluginsJavaCompile and related tasks. This should cause tasks like sourcesJar and javadoc to now include the generated code. You may need to exclude the generated code from lintersThe coordinates of the plugin have changed (inadvertently, same as in https://github.com/gradle/plugin-portal-requests/issues/124). If you are not usi
The coordinates of the plugin have changed (inadvertently, same as in https://github.com/gradle/plugin-portal-requests/issues/124). If you are not using the plugin DSL, then you will need to change the dependency classpath from gradle.plugin.com.google.protobuf:protobuf-gradle-plugin to com.google.protobuf:protobuf-gradle-plugin when upgrading. I hope that's the only issue. I would fix it with another release, but it seems this is how Gradle wants it, because plugin-publish is removing an override.
Restrict getOutputSourceDirectorySet() to directories only (#533). This fixes build failures for certain configurations when outputPath is a zip/jar
outputPath is a zip/jarFix configuration caching violation when generating jar plugin trampoline script by using saved ProjectLayout to get build directory in GenerateProtoT
Make compileProtoPath variant selection criteria tighter by adding JAVA_RUNTIME usage attribute. Without this, dependency resolution may result in amb
Added missing proto{} Kotlin DSL for Android builds configuring proto source directory (#443).
proto{} Kotlin DSL for Android builds configuring proto source directory (#443).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 appl
This plugin now partially supports Gradle configuration cache (requires Gradle 6.6+). It works to some extent, but there are still problems. (#406, #4
Always include extract protos in compiled archive. (#389) Previously processResourcesTask runs in parallel with extractProtoTasks, which would potenti
The plugin now requires Gradle 5.6+ (corresponding Android plugin version is 3.5.0+ if using for Android).
implementation dependencies that use java-library plugin. (#366)osdetector plugin version to 1.6.2.27.0.1-jre.3.8.0. (#323)Fixed #295 ("WARNING: API 'variant.getJavaCompile()' is obsolete" with Android plugin) for real.
Fixed #295 ("WARNING: API 'variant.getJavaCompile()' is obsolete" with Android plugin) for real.
Make generateProtoTask resolve file/directory lazily to allow including build time proto (#317, resolves #313)
protobuf dependency (#294)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 raise
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:
The plugin now requires at least Java 8 to work.
The plugin now requires at least Java 8 to work.
protobuf configuration now supports extracting protos from *.tgz files (#266)Moved away from using android private API: variant.variantData (#235). This made the plugin able to work with Android Studio 3.2.0-beta1.
Fixed the bug (#212) introduced in 0.8.4 that build would fail if current directory or any proto source path contain space(s).
Fixed the bug (#212) introduced in 0.8.4 that build would fail if current directory or any proto source path contain space(s).
Add com.android.feature to the set of supported plugins
Dependencies can now be expressed as a tuple of (group, name, version, classifier, ext) eg com.example:example-plugin:0.0.0-rc0+experimental
Major change:
(group, name, version, classifier, ext) eg com.example:example-plugin:0.0.0-rc0+experimental (#31)Add support for Android Gradle Plugin 2.5
This is a bug-fix release. The protobuf dependency is now transitive
This is a bug-fix release. The protobuf dependency is now transitive (#116)
Stop using deprecated API on Gradle 3.0
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)
Improved performance of configuration phase (google/protobuf-gradle-plugin#42)
This release fixes the breakage with Gradle 2.12.
This release fixes the breakage with Gradle 2.12.
Gradle 2.12 is now the minimum supported version.
Fixed #58. Now protos in the test source set is able to import protos from the main source set.
This is a bug fix release.
It's no longer a requirement that Java/Android plugins are applied before the protobuf plugin. The plugins can be applied in arbitrary order.
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:
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
Just a small change: GenerateProtoTask's builtins and plugins properties are now readable. This resolves #49.
Just a small change: GenerateProtoTask's builtins and plugins properties are now readable. This resolves #49.
This is a minor feature and bug fix release.
0.6.1 is a minor feature release. It has better dependency support and supports a new protoc option.
0.6.1 is a minor feature release. It has better dependency support and supports a new protoc option.
--proto_path argument of the protoc
command line, so that they can be imported in the proto files of this
project, but won't be compiled again.protobuf dependencies now works for Android projects too.generateDescriptorSet to GenerateProtoTask to support --descriptor_set_out(0.6.0 should be skipped as it contains an issue which was fixed in 0.6.1).
Nothing published for this version
0.5.0 is a major feature release of the plugin. DSL is overhauled. Most of the code has been re-written. Please refer to README.md for usage.
0.5.0 is a major feature release of the plugin. DSL is overhauled. Most of the code has been re-written. Please refer to README.md for usage.
Major changes:
builtins and plugins configuration from sourceSets to tasks in order to work in Android projects.protobuf block (resolves #14)Minor changes:
extractedProtosDir option is removedNothing published for this version
Options are per-sourceSet, so you can configure a sourceSet to generate normal Java, and another sourceSet to generate nano.
Changes:
protobufCodeGenPlugins and protobufNativeCodeGenPluginDeps
will no longer apply all plugins automatically. Plugins need to be
configured in the sourceSets explicitly.Example:
sourceSets {
main {
proto {
// Configure built-in outputs.
builtins {
// 'java' is added by default. If you don't want additional
// options,
// you don't need to write this block.
java {
// Options added to --java_out
option 'option1=true'
}
}
}
}
nano {
proto {
// Configure built-in outputs. Default is 'java'. Here we only
// build javanano.
builtins {
remove java
javanano {
// Options added to --javanano_out
option 'java_multiple_files=true'
option 'option2=false'
}
}
// Apply the 'grpc' plugin
plugins {
grpc {
// Options added to --grpc_out
option 'nano=true'
option 'option2=false'
}
// Apply the 'xrpc' plugin without options
xrpc { }
}
}
}
}
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.