Skip to content

[#7976] improvement(build): Support compiling Gravitino with JDK 21#11124

Open
singhvishalkr wants to merge 1 commit into
apache:mainfrom
singhvishalkr:feat/support-jdk21-build
Open

[#7976] improvement(build): Support compiling Gravitino with JDK 21#11124
singhvishalkr wants to merge 1 commit into
apache:mainfrom
singhvishalkr:feat/support-jdk21-build

Conversation

@singhvishalkr
Copy link
Copy Markdown

This PR addresses #7976 by enabling Gravitino to be compiled with JDK 21.

The Spotless Gradle plugin version 6.11.0 had an issue when running against JDK 21, which was fixed in version 6.19.0 (see diffplug/spotless#1819). I upgraded the plugin to 6.25.0 (current stable) and updated the JDK version check in build.gradle.kts to allow both JDK 17 and 21.

Changes:

  • Upgraded spotless-plugin from 6.11.0 to 6.25.0 in gradle/libs.versions.toml
  • Updated the JDK version check in build.gradle.kts to accept VERSION_17 or VERSION_21

Tested locally with JDK 17 (verified existing behavior works). The JDK 21 path now applies the spotless plugin instead of throwing a GradleException.

…K 21

The Spotless Gradle plugin version 6.11.0 had an issue with JDK 21 that
was fixed in version 6.19.0 (diffplug/spotless#1819).

This change upgrades the Spotless plugin to 6.25.0 and updates the JDK
version check to allow both JDK 17 and JDK 21 for building Gravitino.

Signed-off-by: Vishal Kumar Singh <vishal.kr.singh2021@gmail.com>
@roryqi roryqi requested a review from jerryshao May 16, 2026 10:00
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.

1 participant