Upgrade protobuf Gradle plugin to 0.10.0 across all modules#11310
Open
Upgrade protobuf Gradle plugin to 0.10.0 across all modules#11310
Conversation
Aligns all 8 usages from 0.8.18/0.9.3/0.9.4 to 0.10.0 as part of
Gradle 9 preparation. Also fixes related Gradle 9 incompatibilities:
* Replace deprecated `$buildDir` with `layout.buildDirectory.dir()`
and fix the generated source path (source -> sources)
* Replace eager spread-operator `*.plugins {}` with lazy `configureEach`
* Remove redundant legacy `buildscript { classpath }` block in
armeria-grpc/application
Comment on lines
37
to
43
| sourceSets { | ||
| test { | ||
| java { | ||
| srcDir "$buildDir/generated/source/proto/test/java" | ||
| srcDir layout.buildDirectory.dir("generated/sources/proto/test/java") | ||
| } | ||
| } | ||
| } |
Contributor
There was a problem hiding this comment.
Build failed and Clude suggested to delete this block completely:
The protobuf 0.8.18 plugin (pre-upgrade) didn't auto-add the directory, so the manual addition was needed.
Plugin 0.10.0 does it for you — keeping the manual line on top of it actively breaks the wiring.
AlexeyKuznetsov-DD
approved these changes
May 7, 2026
Contributor
AlexeyKuznetsov-DD
left a comment
There was a problem hiding this comment.
LGTM, but couple of jobs failed on CI, should be easy to fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Aligns all 8 usages from 0.8.18/0.9.3/0.9.4 to 0.10.0 as part of Gradle 9 preparation. Also fixes related Gradle 9 incompatibilities:
$buildDirwithlayout.buildDirectory.dir()and fix the generated source path (source -> sources)*.plugins {}with lazyconfigureEachbuildscript { classpath }block in armeria-grpc/applicationMotivation
Prepare Gradle 9
Improve build quality