Hi,
This or related questions appeared several times on the old forum, f.g.:
- How to override gradleAPi() depedency?
- Replace gradleApi() dependency with newer version?
- Issues with gradleApi() and transitive dependencies
It’s been never answered though. So let me ask again, how this can be done?
I would like to upgrade groovy version as now I need to use different versions of Groovy in buildSrc than in project modules. This further causes need of using different versions of Spock as well. I don’t like such an inconsistency at all but not only about disliking it is.
Regarding recent improvement in IntelliJ IDEA can be used eclipse-groovy compiler to speed up in-IDE compilation. However I cannot specify different versions of groovy-eclipse-batch-xxx.jar for buildSrc than for the project modules which causes:
Error:Groovy-Eclipse: Groovy:Unexpected problem with AST transform: The Spock compiler plugin cannot execute because Spock 1.0.0-groovy-2.3 is not compatible with Groovy 2.4.3. For more information, see http://versioninfo.spockframework.org
Could anybody please advise how to override transitive dependencies brought by gradleApi(), please?
One more thing - why those dependencies are not listed by gradle dependencies task?