Plugin gradle config: building downloads the same version

Trying to build the ideavim plugin, but I presume this applies to the general plugin gradle build config. The gradle task is always downloading the same version of the intellij sources. 

Attempt to build:

./gradlew test 130 ↵
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
Download https://www.jetbrains.com/intellij-repository/snapshots/com/jetbrains/intellij/idea/ideaIC/171-EAP-SNAPSHOT/ideaIC-171-EAP-SNAPSHOT.zip

 

Already cached downloads:

find . -name '*EAP*SNAPSHOT*.zip' 1 ↵
find: ‘./.cache/dconf’: Permission denied
./.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/LATEST-EAP-SNAPSHOT/e6f4c74ac091e55d0ac4e2ad26d91c12a4f23592/ideaIC-LATEST-EAP-SNAPSHOT.zip
./.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/171-EAP-SNAPSHOT/591b9197cf97c1e187b30f1ff7bc6acdc1ff25b7/ideaIC-171-EAP-SNAPSHOT.zip
./.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/171-EAP-SNAPSHOT/d53a851775f5037efab992613b4a97117fbe2c3f/ideaIC-171-EAP-SNAPSHOT.zip
./.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/171-EAP-SNAPSHOT/8191d9069e601f60dac0f5ebc0e5616142518573/ideaIC-171-EAP-SNAPSHOT.zip
./.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/171-EAP-SNAPSHOT/3051b1319c90aa0b7584da6ac7827b06beb508d8/ideaIC-171-EAP-SNAPSHOT.zip
./.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/171-EAP-SNAPSHOT/87912b3f65d86b753f482c206fc6d1de60e6bba5/ideaIC-171-EAP-SNAPSHOT.zip
./.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/171-EAP-SNAPSHOT/a41b8eede8e1c43dbb46e443249ac712f2143e64/ideaIC-171-EAP-SNAPSHOT.zip

6 comments
Official comment

You use snapshot version, it's changed every day.
Caching snapshot dependencies can be configured in gradle.

I didn't get it, what's the problem exactly?

0

The problem is everytime I do ' gradle build', it re-dlownloads the intellij distribution (of 400 MB). Shouldn't it be cached?

 

1

I have the same problems on my project. Gradle distribution get downloaded for every project, every time I refresh. All my 40 projects use the same stable gradle wrapper version number, but all 40 projects download its own copy several times.

1

@Francogpellegrini the thread is about downloading Intellij IDEA distribution, not about Gradle distribution.

0

Please sign in to leave a comment.