artyrian commented on PR #9886: URL: https://github.com/apache/iceberg/pull/9886#issuecomment-1991496911
During the assembly of release 1.4.3, classes from JDK 21 started to inadvertently mix into the runtime classpath. The build began to fail with the error java.lang.IllegalArgumentException: Unsupported class file major version 65. This issue arose because there was a minor update to the Jackson215 dependency described in Gradle for release 1.4.3. This dependency change began causing build failures as detailed here: https://github.com/apache/iceberg/blob/1.4.x/gradle/libs.versions.toml#L40. At the time of the build, Jackson215 was at version 2.15.2, but it has since been updated to 2.15.4. Due to this update, JDK 21 classes began to get mixed into the runtime classpath. The specific change between these versions can be found here: https://github.com/FasterXML/jackson-core/compare/jackson-core-2.15.3...jackson-core-2.15.4#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R219. A proper fix is already in place in the main branch for a different reason. https://github.com/apache/iceberg/commit/b6cefe5e1444645b2d29010be3167161e2aa093a However, to fix the build of the release version, it was necessary to apply the following patch and, as a precaution, lock down all minor versions. This issue reproduces when attempting to build the project using JDK17 and Gradle 8.4. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org