jdaugherty commented on PR #15631:
URL: https://github.com/apache/grails-core/pull/15631#issuecomment-4380363708
Root cause: Adding the Sonatype scan plugin to
build-logic/plugins/build.gradle changed the build-logic's content hash, which
invalidated the Gradle build cache for all subproject tasks. When findMainClass
runs fresh (not from
cache), MainClassFinder tries to read compiled Java 17 class files (major
version 61) using groovyjarjarasm.asm.ClassReader — the ASM bundled with Groovy
3.x — which doesn't support class file version 61. This is a pre-existing bug
that was hidden by the build cache.
The fix is to switch MainClassFinder from groovyjarjarasm.asm (Groovy's
bundled, potentially old ASM) to org.objectweb.asm (the explicit ASM library,
version-managed by Spring Framework BOM at 9.7+, which supports Java 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]