For the sake of clarity: this is NOT about multiple versions of dependencies, it's about multiple versions of Gradle's own jars.
I thought this might have the answer... but there aren't any!
This is Gradle 2.14, with a Windows 10 OS.
I found that gradle was constantly building a new directory under the ".gradle\" directory for this project: alongside the legitimate "2.14\" directory it kept building a "2.2.1\" directory.
I looked under my directory where Gradle is installed: and puzzlingly I found multiple versions of Gradle's jar files: not only 2.14, but 2.13, 1.7, and yes, 2.2.1..
So I decided to manually delete the 2.2.1. jars. It stopped building the "spurious" 2.2.1 directory.
Can someone tell me how Gradle decides which version of itself it is using? I'd really like to get rid of those non-2.14 jars and find a way to prevent other versions creeping back in somehow!
gradle wrapper
. After that, the IDE can be configured to always use the gradle wrapper or usegradlew
on the console. – Halfpint