I have a gradle project in Eclipse that was first configured not to use the gradle wrapper. So, in the command line, I run:
to generate the required wrapper files. And the files were generated:
I thought that just doing this when I used the Gradle Tasks view to run tasks the gradle wrapper would be used, but I was wrong. For example, the below image shows the output when I run the build task.
As you can see, it says:
Gradle Distribution: Local instalation at C:\gradle-6.6.1
clearly showing that the wrapper wasn’t used, but the local distribution in my machine instead.
If the wrapper was being used I think I would see something like this:
Gradle Distribution: Gradle wrapper from target build
So, how do I configure my Eclipse project to use the wrapper when running tasks in the IDE?