Thanks for your answer. Can you please elaborate from where have you taken the path to the groovy plugin in your example? (org.intellij)... in my own plugin i can't find it or other plugin - from where should i take the path? In addition, if i'm adding a dependency to some plugin, will the plugin zip contain the other plugin as well? (I'm talking about some plugin from the plugin repository)
You should check plugin.xml of the plugin you want to depend on. There must be an <id> element (I provided a link to the groovy plugin's plugin.xml line which contains that definition).
Adding another plugin as a dependency mean that that plugin should be enabled when a user turns on your plugin. The IDE will provide assistance for such situations like below:
OK, got it. For some reason intellij mark it as error but it works when i build my plugin. But if i want to use the other plugin functionality, is it possible even if the other plugin does not define extention point?
It must be possible. But it's much better to contact a plugin's author and ask for extension points then. Otherwise it would be hard to maintain your own plugin in case outer plugin's iplmenetation is changed.
Hello,
Yes, it's possible. All you need is to declare a dependency to the target plugin id at your plugin.
Example - 'groovy' plugin defines its id as 'org.intellij.groovy' and, say, gradle plugin uses groovy plugin's id as a dependency.
Denis
Thanks for your answer. Can you please elaborate from where have you taken the path to the groovy plugin
in your example? (org.intellij)... in my own plugin i can't find it or other plugin - from where should i take the path?
In addition, if i'm adding a dependency to some plugin, will the plugin zip contain the other plugin as well?
(I'm talking about some plugin from the plugin repository)
Thanks
You should check plugin.xml of the plugin you want to depend on. There must be an <id> element (I provided a link to the groovy plugin's plugin.xml line which contains that definition).

Adding another plugin as a dependency mean that that plugin should be enabled when a user turns on your plugin. The IDE will provide assistance for such situations like below:
Denis
OK, got it. For some reason intellij mark it as error but it works when i build my plugin.
But if i want to use the other plugin functionality, is it possible even if the other plugin does not define extention point?
It must be possible. But it's much better to contact a plugin's author and ask for extension points then. Otherwise it would be hard to maintain your own plugin in case outer plugin's iplmenetation is changed.
Denis