Skip to content

Minor collection of Gradle 9 fixes - #13109

Merged
ejona86 merged 1 commit into
grpc:masterfrom
ejona86:small-gradle9-fixes
Oct 12, 2026
Merged

ejona86 merged 1 commit into
grpc:masterfrom
ejona86:small-gradle9-fixes

Conversation

@ejona86

@ejona86 ejona86 commented Oct 9, 2026

Copy link
Copy Markdown
Member

This isn't enough to get Gradle 9 working locally. At the very least, more work will be needed for changes with the shadow plugin. But all of these changes work fine with Gradle 8 as well.

In Gradle 9.5.0 DependencyHandler (the class that powers dependencies {}) got a project(String) method, which now shadows the method from Project.

The AppEngine plugin pulls in WarPluginConvention, which is removed. GoogleCloudPlatform/appengine-plugins#998 . Disabling the auto-detection behavior for detecting the correct plugin works around the issue.

Gradle 9 upgrades to Groovy 4, which removes groovy.util.XmlParser which was replaced by groovy.xml.XmlParser.

This isn't enough to get Gradle 9 working locally. At the very least,
more work will be needed for changes with the shadow plugin. But all of
these changes work fine with Gradle 8 as well.

In Gradle 9.5.0 DependencyHandler (the class that powers dependencies
{}) got a project(String) method, which now shadows the method from
Project.

The AppEngine plugin pulls in WarPluginConvention, which is removed.
GoogleCloudPlatform/appengine-plugins#998 .
Disabling the auto-detection behavior for detecting the correct plugin
works around the issue.

Gradle 9 upgrades to Groovy 4, which removes groovy.util.XmlParser which
was replaced by groovy.xml.XmlParser.
@ejona86
ejona86 merged commit cf7c13c into grpc:master Oct 12, 2026
17 of 18 checks passed
@ejona86
ejona86 deleted the small-gradle9-fixes branch October 12, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants