jamesfredley opened a new pull request, #15604:
URL: https://github.com/apache/grails-core/pull/15604

   ## Summary
   
   The `verifyWrapper` job in `.github/workflows/gradle.yml` pins 
`actions/setup-java` to JDK 17. That works on `7.0.x` / `7.1.x` (where 
`javaVersion=17`), but when the workflow [merged into 
8.0.x](https://github.com/apache/grails-core/actions/runs/24942953745) the 
project's `javaVersion=21` causes `grails-wrapper`'s Java sources to be 
compiled with `--release=21` (class file version 65), so the JDK 17 runtime in 
the verify step fails:
   
   ```
   Error: LinkageError occurred while loading main class grails.init.Start
           java.lang.UnsupportedClassVersionError: grails/init/Start has been 
compiled by a more recent version of the Java Runtime (class file version 
65.0), this version of the Java Runtime only recognizes class file versions up 
to 61.0
   ```
   
   ## Fix
   
   Bump the verify step to JDK 21 to match this branch's `javaVersion`. Added 
an inline comment so future `javaVersion` bumps know this needs to move in 
lockstep.
   
   ## Out of scope
   
   The same run also had a `docs` job failure during `Publish to Github Pages` 
with merge conflicts in `docs/snapshot/...` files. That looks transient: the 
`7.1.x` push (success at 23:11:56Z) and `8.0.x` push (failure at 23:13:58Z) ran 
~2 min apart and both deploy snapshot docs to `apache/grails-website`. The 
deploy logic lives in `apache/grails-github-actions/deploy-github-pages@asf`, 
not in this repo, so it's not addressed here.


-- 
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]

Reply via email to