Search code examples
gradleintellij-plugin

Intellij - add dependency on another plugin


I am trying to implement a Golang code generation/auto completion plugin for Intellij using the PSI, so I need to add a dependency on my Golang plugin. This looks like what I want to do - https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html

Now the question is how can I figure out id and name and version of the plugin Im using? It does not seem to be anywhere in the plugin preferences

The PSI elements are of com.goide.psi.impl.GoTypeImpl class and similar.


Solution

  • There is no easy way to get a plugin id. You can check plugin.xml to get it. For Go Plugin it's org.jetbrains.plugins.go.

    Versions can be found on plugin page.