Org.spockframework:spock-core with gradle8/java21/groovy5

Has anyone any got org.spockframework:spock-core work with gradle 8.5/Java 21? I’m assuming this is what is causing my Unsupported class file major version 65 for compileTestGroovy.

  testImplementation group: 'org.apache.groovy', name: 'groovy-all', version: '5.0.0-alpha-4', ext: 'pom'
  testImplementation 'org.spockframework:spock-core:2.3-groovy-4.0'

You shouldn’t mix Spock variant for Groovy 4 with a Groovy 5 version.
Spock will complain at you unless you tell it “shut up I know very well what I do”.
But you also don’t need to.
Just use the latest Groovy 4 version and it works just fine.
Also you should not depend on on groovy-all unless you really need each and every module, but instead better depend on the actual modules you use or just groovy if you do not depend on any other.