Skip to content

Upgrade protobuf Gradle plugin to 0.10.0 across all modules#11310

Open
bric3 wants to merge 1 commit intomasterfrom
bdu/bump-proto-plugin-to-0.10.0
Open

Upgrade protobuf Gradle plugin to 0.10.0 across all modules#11310
bric3 wants to merge 1 commit intomasterfrom
bdu/bump-proto-plugin-to-0.10.0

Conversation

@bric3
Copy link
Copy Markdown
Contributor

@bric3 bric3 commented May 7, 2026

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:

  • 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

Motivation

Prepare Gradle 9
Improve build quality

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
@bric3 bric3 requested review from a team as code owners May 7, 2026 19:32
@bric3 bric3 added tag: no release notes Changes to exclude from release notes comp: tooling Build & Tooling labels May 7, 2026
@bric3 bric3 changed the title build: Upgrade protobuf Gradle plugin to 0.10.0 across all modules Upgrade protobuf Gradle plugin to 0.10.0 across all modules May 7, 2026
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")
}
}
}
Copy link
Copy Markdown
Contributor

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD May 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but couple of jobs failed on CI, should be easy to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: no release notes Changes to exclude from release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants