JetBrains / intellij-platform-plugin-template

Template repository for creating plugins for IntelliJ Platform
Apache License 2.0
3.04k stars 614 forks source link

Adding a dependency on the com.intellij.java platform plugin no longer works. #397

Closed tikurahul closed 11 months ago

tikurahul commented 1 year ago

What happened?

Make the following change to gradle.properties.

# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins = com.intellij.java

Run: ./gradlew buildPlugin

You will then see:

* What went wrong:
Could not determine the dependencies of task ':prepareSandbox'.
> Failed to query the value of task ':prepareSandbox' property 'pluginDependencies'.
   > Cannot find builtin plugin 'com.intellij.java' for IDE: /Users/xxx/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2022.3.3/19e52733ac61e1d2e675720f92daf5959355cb1e/ideaIC-2022.3.3

Relevant log output or stack trace

* What went wrong:
Could not determine the dependencies of task ':prepareSandbox'.
> Failed to query the value of task ':prepareSandbox' property 'pluginDependencies'.
   > Cannot find builtin plugin 'com.intellij.java' for IDE: /Users/xxx/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2022.3.3/19e52733ac61e1d2e675720f92daf5959355cb1e/ideaIC-2022.3.3

### Steps to reproduce

Make the following change to `gradle.properties`.

```properties
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins = com.intellij.java

Run: ./gradlew buildPlugin

Gradle IntelliJ Plugin version

1.15.0

Gradle version

8.2.1

Operating System

macOS

Link to build, i.e. failing GitHub Action job

No response

hsz commented 1 year ago

After adding platformPlugins = com.intellij.java to the template and running buildPlugin Gradle task, everything works well.

Could you please remove the /Users/xxx/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2022.3.3/ directory and try again?