Continuing the discussion from How do I fix the "Spock 1.0.0-groovy-2.4 is not compatible with Groovy 2.3.10" error?:
This error is also evident in Eclipse. I imported a Gradle project (not a multi-project so I had some hope of being able to build it with buildship see my other post). I just used the standard project input settings which gave me a gradle 2.11 base, and I find that groovy-all-2.4.4 jar is pulled in from there as a dependency. It is not getting pulled in by any of my code.
This always produces the following error
Groovy:Unexpected problem with AST transform: The Spock compiler plugin cannot execute because Spock 1.0.0-groovy-2.4 is not compatible with Groovy 2.3.10. For more information, see http://versioninfo.spockframework.org
at line 1 of one particular groovy file in my source. Why there and not somewhere else is a mystery but it’s also apparently a false positive, as I can actually build the project with gradle from within Eclipse. It’s just an annoying and apparently meaningless eyesore. It’s not particular to buildship either, the same happened when I was using the Spring tooling for Gradle.
By the way, the link in the error message above contains no useful information.