Skip to content

Bump Gradle version to 9.1.0 to allow using GraalVM 25#713

Merged
kimeta merged 2 commits intooracle:masterfrom
kimeta:mm/bump-up-gradle-version
Nov 11, 2025
Merged

Bump Gradle version to 9.1.0 to allow using GraalVM 25#713
kimeta merged 2 commits intooracle:masterfrom
kimeta:mm/bump-up-gradle-version

Conversation

@kimeta
Copy link
Copy Markdown
Collaborator

@kimeta kimeta commented Nov 7, 2025

What does this PR do?

Implements: #709

Upgrade Gradle to 9.1.0 to enable support for GraalVM 25.

@kimeta kimeta requested a review from vjovanov November 7, 2025 10:53
@kimeta kimeta requested a review from a team as a code owner November 7, 2025 10:53
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need to bump the gradlew script since it is a major version?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, sorry. We need to change gradlew.bat, gradle-wrapper.jar and gradlew as well.

@vjovanov vjovanov changed the title Bump Gradle version to 9.1.0 Bump Gradle version to 9.1.0 to allow using GraalVM 25 Nov 7, 2025
@kimeta kimeta force-pushed the mm/bump-up-gradle-version branch 2 times, most recently from 390e8bf to 1ebeacb Compare November 7, 2025 17:16
}

private static class HttpServerHandler extends SimpleChannelInboundHandler<Object> {
private static final class HttpServerHandler extends SimpleChannelInboundHandler<Object> {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do we have to change the tests for gradle?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

When we upgraded gradle version to 9.1.0, default version of checkstyle upgraded, which caused some of our test code to fail the checkstyleTest task:

> Task :checkstyleTest FAILED

[ant:checkstyle] [ERROR] ...tests/src/io.netty/netty-common/4.1.80.Final/src/test/java/netty/NettyTests.java:246:5: Class HttpServerHandler should be declared as final. [FinalClass]

All changes in the tests are just to fix these failures.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@vjovanov vjovanov requested a review from melix November 10, 2025 15:15
Copy link
Copy Markdown
Member

@melix melix left a comment

Choose a reason for hiding this comment

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

Note that this will require to be more careful when making changes since we're going to compile against newer Gradle APIs, so we need to be extra careful with compatibility with older Gradle releases.

@kimeta kimeta force-pushed the mm/bump-up-gradle-version branch from 1ebeacb to 7c5849c Compare November 10, 2025 22:49
Comment thread gradle/checkstyle.xml
<property name="ignoreConstructorParameter" value="true"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="FinalClass"/>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can't have such rules as it will cause issues with AI-generated tests in the future.

@kimeta kimeta merged commit ecee133 into oracle:master Nov 11, 2025
490 of 511 checks passed
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.

3 participants