Hi, We noticed a strange behavior while executing Gradle builds from Jenkins. Every time we run a build new Distribution of Gradle is downloaded and installed in “.gradle/wrapper/dists” directory. After quick investigation we realized that “Gradle Wrapper” was used in some project that triggered download of particular Gradle distribution and its installation. The strange thing is it’s downloading the same version over and over again ( same version 4.10.2 and same size of the zip file ). I tried to replicate this behavior on my local machine and by switching to Gradle Wrapper and I updated “distributionUrl” to use 5.4.1 version of Gradle ( I used to use 5.3.1 installed locally ) and ran Build task for my project and there was no download of the 5.4.1 distribution.
questions:
- Is it possible to disable download process?
- If we keep downloading specified distribution is it possible to limit it to one instance?
- Why didn’t Gradle download new distribution locally?
Thank you in advance.