Repository navigation
[improve][build] Upgrade Gradle plugins and move to the io.github.ben-manes.versions plugin id - #26350
Merged
Conversation
…-manes.versions plugin id
- spotless 8.4.0 -> 8.10.0
- version-catalog-update 1.1.0 -> 1.1.1
- crlf (vlsi) 3.0.1 -> 4.0.0
- versions (ben-manes) 0.53.0 -> 0.61.0, and the plugin id moves from
com.github.ben-manes.versions to io.github.ben-manes.versions
The com.github.ben-manes.versions plugin id is deprecated in favour of
io.github.ben-manes.versions, to match current Gradle Plugin Portal policy. The old id
still receives releases but logs a deprecation warning when applied.
The vlsi crlf 4.x line requires Gradle 8.3+, Kotlin 1.9 and Java 8; Pulsar builds with
Gradle 9.7, so the floor is met.
The remaining build plugins are already on their latest releases and are unchanged:
shadow 9.6.1, graalvm-buildtools 1.1.9, rat 0.8.1, nar 0.1.3, idea-ext 1.4.1 and
protobuf 0.10.0.
lightproto is deliberately left at 0.7.3 here and handled separately: 0.8.0 rewrites the
generated serialization code path, so it does not belong in a build-plugin bump.
Assisted-by: Claude Code (Opus 5)
nodece
approved these changes
Aug 18, 2026
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.
Motivation
Several Gradle build plugins are behind. Separately, the
com.github.ben-manes.versionsplugin idis now deprecated in favour of
io.github.ben-manes.versions, to match current Gradle Plugin Portalpolicy; the old id still receives releases but logs a deprecation warning on every build that applies
it.
Modifications
gradle/libs.versions.toml:com.github.ben-manes.versions:0.53.0io.github.ben-manes.versions:0.61.0The versions plugin is applied through
alias(libs.plugins.versions)in the root build script, sochanging the coordinate in the catalog is sufficient — no build script edit is needed.
The remaining build plugins are already on their latest releases and are left unchanged:
shadow9.6.1,graalvm-buildtools1.1.9,rat0.8.1,nar0.1.3,idea-ext1.4.1 andprotobuf0.10.0. TheswaggerGradle plugin tracks the sharedswaggerversion reference and ishandled in the misc-libraries PR.
The vlsi crlf 4.x line requires Gradle 8.3+, Kotlin 1.9 and Java 8. Pulsar builds with Gradle 9.7, so
the floor is met.
lightproto is deliberately excluded
lightproto0.8.0 is available but is not included here, because it is not a build-only change.Regenerating the protocol sources against 0.8.0 and diffing them against 0.7.3 shows that the
generated serialization code path is rewritten:
Unsafe-style direct memory access (memoryAddress(),BYTE_ARRAY_BASE_OFFSET)to an array/scratch-buffer path, adding a per-message
_scratchbyte[] field;_bitField0masks;io.netty.bufferpackage to reachAbstractByteBuf's protected_getByteaccessor and itsreaderIndexfield directly, deliberately skipping Netty's per-bytebounds checks. Its own javadoc notes that it "creates a split package with netty-buffer under the
JPMS module path" and that on truncated input a read may advance up to 9 bytes past the intended
message limit.
That touches Pulsar's hottest serialization path and warrants its own PR with benchmarking, so it is
left for a follow-up.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Verified locally with
./gradlew quickCheck,./gradlew sanityCheckand./gradlew checkBinaryLicense(the last one builds both distributions, which exercises the crlfplugin).
Does this pull request potentially affect one of the following parts: