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