In the screenshot are marked the two groovy versions I need to change Im working on a grails 4 project trying to integrate it with open clover plugin for testing coverage. Im trying to use the groovy version I have installed and set as default in my local, instead of using the internal version that ships with gradle. How can I do that?
You can't replace or remove the shipped/provided Groovy that comes with Gradle because:
So Gradle is effectively tied to whatever version of Groovy it was shipped with for that release. If your project requires a different version or requires Groovy in general, then you need to explicitly declare a Groovy dependency as you would for any Groovy project:
dependencies {
implementation "org.codehaus.groovy:groovy-all:3.0.4"
}