Why gradle always downloads large files when trying to build a plugin project?


I am trying to learn IDEA plugin creation. I found some gradle based plugin sourse codes on github and tried to build them on my system. They are taking too long to build as gradle is trying to download some large files. The last project I build took around 6 hours to finish downloading. Why is this happening and how can I work around this to speed up my buid process? 

Thanks for the help 



You cannot workaround it because otherwise, you won't be able to compile and run your project. Downloading happens just once per IntelliJ version. SDK for Community Edition is 400MB + 200 MB of sources. For me, it takes ~5 minutes to download them.

You can disable sources downloading, so you'll need fewer files to download. Please see documentation to find how to do it: https://github.com/JetBrains/gradle-intellij-plugin/blob/master/README.md. Also, you can try to use `localPath` option, so Gradle will use local IDEA for compiling.

Also, you can use DevKit instead of Gradle to build your plugin. It doesn't require downloading dedicated IntelliJ SDK. http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/using_dev_kit.html


Happened three times the past hour. For every plugin gradle was added. localpath might help. I will try.