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

10 comments
Comment actions Permalink
Official comment

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

Comment actions Permalink

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

0
Comment actions Permalink

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

 

1
Comment actions Permalink

 how do you fixed it?

0
Comment actions Permalink

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.

2
Comment actions Permalink

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

0
Comment actions Permalink

Is it possible to specify a build version instead of ideaIC-LATEST-EAP-SNAPSHOT.zip ?

Where are the build versions listed?

0
Comment actions Permalink

Thank you very much Alexander, 

Any hints: how can the build version be specified in the build.gradle?

I think I found it:

intellij { 
version '182.3911.6' // see https://www.jetbrains.com/intellij-repository/releases
plugins 'coverage' //Bundled plugin dependencies
pluginName 'plugin_name_goes_here'
}

 

0
Comment actions Permalink

I have the same issue, every day, the when i build, the initial build takes a few minutes downloading the snaphsot. I see this in the logs

Download https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-jbr/jbr-11_0_6-osx-x64-b765.40.tar.gz

 

and sometimes this

joseph@C02T9C7KGTFM securekit-ide-plugin % ./gradlew runIde
Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details
<-------------> 0% CONFIGURING [29s]
> > root project > Resolve files of :detachedConfiguration1 > ideaIC-193.6494.35.zip > 2.13 MB/540.60 MB downloaded

I have the following in the build.gradle to use the current installed version of intellij

 

intellij {
version intellij.version
type 'IC'
plugins "android"
}

I did change it to match the version of intellij with

intellij {
version '193.6494.35'
type 'IC'
plugins "android"
}

which is in the intellij installed on my machine but it still keeps downloading everyday.

0

Please sign in to leave a comment.