When building a new plugin project, the download speed is very slow

Answered

Is there any way to solve it, in China

 
1 comment
Comment actions Permalink

Hi, It's because there is no CDN for these maven repos in China.

Instead, you can try another way, using the localPath property, this way there will be no need to download a big IDEA package again. Just install an IDEA in the Toolbox App, and then referer to

https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-localpath

localPath

The path to the locally installed IDE distribution that should be used to build the plugin. Using the intellij.localPath allows to build the plugin using an IDE that is not available in IntelliJ Platform Artifacts Repositories.

Type

String

Default value

null

Samples
  • Windows: C:\Users\user\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\211.7142.45

  • macOS: /Applications/Android Studio 4.2 Preview.app/Contents (note /Contents suffix)

  • Linux: /home/user/idea-IC-181.4445.78

intellij.version and intellij.localPath must not be specified at the same time.

A sample here:

// Configure gradle-intellij-plugin plugin.
// Read more: https://github.com/JetBrains/gradle-intellij-plugin
intellij {
pluginName.set(properties("pluginName"))
version.set(properties("platformVersion"))
type.set(properties("platformType"))
downloadSources.set(properties("platformDownloadSources").toBoolean())
updateSinceUntilBuild.set(false)
localPath.set("C:\Users\user\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\211.7142.45")

// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
plugins.set(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))

}
0

Please sign in to leave a comment.