How to control one plugin not show on different IDE Plugin Marketplace?
已回答
I'm a plugin developer, and I have an question about Jetbrains Plugin Repository.
I notice Laravel plugin (https://plugins.jetbrains.com/plugin/7532-laravel) show that it compatibles with IDEA Ultimate and Phpstorm.
Why PyCharm or WebStorm can not search it on itself's Marketplace?
Is there any setting control when public a plugin to Jetbrains Plugin Repository? Or some settings on plugin.xml?
And I will upload my plugin to Jetbrains Plugin Repository. What I want is only IDEA User can search and install it. How could I do ?
Looking forward to your reply, Thanks.
请先登录再写评论。
Because this plugin depends on PHP language from platform. IDEs that do not provide it hide plugin from marketplace as incompatible.
https://github.com/Haehnchen/idea-php-laravel-plugin/blob/master/build.gradle#L37
See
https://jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
https://jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html
But when I use custom Plugin Repository, and set my plugin only depends 'com.intellij.modules.java'.
When I set custom plugin repository address to PhpStorm, I can see my plugin name show in PhpStorm Plugin Marketplace :(
Do you specify 'depends' in your custom updatePlugins.xml? Smth like `<plugin id="" > <depends>...</depends> </plugin>`?
Note that it might not work with 'simple' format of this file: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206770475/comments/206135395
I used like this
IDE shows everything that is present in custom repository. When you upload plugin to plugins.jetbrains.com compatibility check would be performed on server side and if your plugin has `<depends>com.intellij.modules.java</depends>` then it would be available only in IDEA and Android Studio.