mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 10:17:50 +08:00
IntelliJ Platform Gradle Plugin: setupDependencies
This commit is contained in:
parent
91c32cd056
commit
446685a276
@ -72,18 +72,9 @@ In the Gradle `runIde` run configuration, add the log file path according to [sa
|
||||
|
||||
### Task `setupDependencies` not found in root project 'projectName'
|
||||
|
||||
The [`setupDependencies`](tools_gradle_intellij_plugin.md#tasks-setupdependencies) task was designed to fetch the target IntelliJ Platform dependency in the after-sync Gradle phase as a workaround for the Gradle IntelliJ Plugin `1.x` limitations.
|
||||
Starting with the IntelliJ Platform Gradle Plugin `2.0`, this task is no longer needed and was removed from available tasks.
|
||||
This exception is thrown when there's no `setupDependencies` task present in the project scope.
|
||||
|
||||
Unfortunately, this entry may still remain right after the migration to `2.0` and cause the following exception:
|
||||
|
||||
```
|
||||
Task 'setupDependencies' not found in root project 'projectName'.
|
||||
```
|
||||
|
||||
There are two possible solutions:
|
||||
- manually edit the <path>.idea/workspace.xml</path> file and remove the `setupDependencies` entry
|
||||
- open the <control>Gradle</control> tool window, select the <ui-path>Tasks Activation</ui-path> action from the context menu of the root project item, and remove the `setupDependencies` entry
|
||||
See [Migrating from Gradle IntelliJ Plugin](tools_intellij_platform_gradle_plugin_migration.md#setupdependencies) for more details.
|
||||
|
||||
### How to expose my plugin API sources to dependent plugins?
|
||||
|
||||
|
@ -179,6 +179,16 @@ Use [`intellijPlatform.verifyPlugin`](tools_intellij_platform_gradle_plugin_exte
|
||||
|
||||
To make the IntelliJ SDK dependency available in the IDE, the `setupDependencies` task was provided by Gradle IntelliJ Plugin 1.x.
|
||||
This task is no longer required, but when switching from 1.x, Gradle may still want to execute it in the _afterSync_ phase.
|
||||
|
||||
> Due to the presence of the `setupDependencies` task in the <control>Tasks Activation</control>, the IDE may fail with the following exception if the task is not present:
|
||||
> ```
|
||||
> Task 'setupDependencies' not found in root project 'projectName'.
|
||||
> ```
|
||||
>
|
||||
> To fix this problem, remove any references to `setupDependencies` task from your project.
|
||||
>
|
||||
{title="Task 'setupDependencies' not found" style="warning"}
|
||||
|
||||
To completely drop this approach, it is mandatory to remove its reference manually in the IDE.
|
||||
|
||||
<procedure title="Removing 'setupDependencies' Task">
|
||||
@ -189,6 +199,8 @@ To completely drop this approach, it is mandatory to remove its reference manual
|
||||
|
||||
</procedure>
|
||||
|
||||
Alternatively, edit the <path>.idea/workspace.xml</path> file and remove the `setupDependencies` entry.
|
||||
|
||||
## Other
|
||||
|
||||
### Unresolved 'idea-ext' Plugin
|
||||
|
Loading…
x
Reference in New Issue
Block a user