geyanggang commented on code in PR #11351:
URL: https://github.com/apache/gravitino/pull/11351#discussion_r3360273116
##########
maintenance/jobs/build.gradle.kts:
##########
@@ -91,6 +91,9 @@ tasks.withType(ShadowJar::class.java) {
archiveClassifier.set("")
mergeServiceFiles()
+ // Exclude Java 21 multi-release classes to avoid ASM compatibility issues
with shadow plugin
+ exclude("META-INF/versions/21/**")
Review Comment:
`H2 2.2.224` is a multi-release JAR that includes `Utils21.class` compiled
with Java 21 (class file major version 65). The shadow plugin 8.1.1 uses ASM
9.5, which only supports up to Java 20 (major version 64). When shadow
processes the fat JAR, it scans all class files including those under
`META-INF/versions/21/`, causing the build to fail with `Unsupported class file
major version 65`. Excluding this directory fixes the build — the Java 21
specific classes are optional optimizations and are not loaded at runtime on
JDK 17.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]