tools_gradle_intellij_plugin_faq.md: The Plugin Verifier download directory is set to [...], but downloaded IDEs were also found in [...]

This commit is contained in:
Jakub Chrzanowski 2022-09-28 22:28:55 +02:00
parent 1b4a5d2314
commit 9ff1c2950e
No known key found for this signature in database
GPG Key ID: C39095BFD769862E
2 changed files with 33 additions and 1 deletions

View File

@ -55,7 +55,7 @@ When upgrading to `1.x` version, please make sure to follow the [migration guide
>
{type="tip"}
> This project requires Gradle 6.8 or newer. However, it is highly recommended to always use the latest available Gradle version.
> This project requires Gradle 6.7.1 or newer. However, it is highly recommended to always use the latest available Gradle version.
> Update it with:
> ```Bash
> ./gradlew wrapper --gradle-version=VERSION
@ -1733,3 +1733,5 @@ Validates the plugin project configuration:
- The dependency on the Kotlin Standard Library (stdlib) is automatically added when using the Gradle Kotlin plugin and may conflict with the version provided with the IntelliJ Platform.
> Read more about controlling this behavior on [](using_kotlin.md#kotlin-standard-library).
- An old default [`runPluginVerifier.downloadDir`][#runpluginverifier-task-downloaddir] path contains downloaded IDEs but another default is in use. Links to the [FAQ section][]

View File

@ -170,3 +170,33 @@ To fix that, manually edit the <path>.idea/workspace.xml</path> file removing me
### How do I expose my plugin API sources to dependent plugins?
See the [](bundling_plugin_openapi_sources.md) section for details.
### The Plugin Verifier download directory is set to [...], but downloaded IDEs were also found in [...]
With the `1.10.0` release, the [`runPluginVerifier`](tools_gradle_intellij_plugin.md#tasks-runpluginverifier) task uses the `XDG_CACHE_HOME` environment variable to resolve the default directory for downloaded IDEs instead of the user's home directory.
We recommend moving your existing IDEs stored i.e., in <path>~/.pluginVerifier/ides/</path> directory into <path>$XDG_CACHE_HOME/pluginVerifier/ides</path> to avoid downloading them once again.
In case you want to keep the downloaded archives in the previous location, specify the given path explicitly to the [`runPluginVerifier.downloadDir`](tools_gradle_intellij_plugin.md#runpluginverifier-task-downloaddir) property:
<tabs group="languages">
<tab title="Kotlin" group-key="kotlin">
```kotlin
tasks {
runPluginVerifier {
downloadDir.set(System.getProperty("user.home") + "/.pluginVerifier/ides")
}
}
```
</tab>
<tab title="Groovy" group-key="groovy">
```groovy
runPluginVerifier {
downloadDir = System.getProperty("user.home") + "/.pluginVerifier/ides"
}
```
</tab>
</tabs>