customize idea plugin develop how to rely on the third-party plugin?eg: sonarlint ,use it api
Answered
@Jakub Chrzanowski hello,i am developing idea plugin needs to rely on the third-party plugin sonarlint, how to dependency it inplugin.xml or build.gradle???sonarlint.zip is placed on my server. I want to achieve the following functions:
1. Installing my plug-in will automatically install sonarlint;
2. Configure sonarlint default setting by wrtting code in my customize plugin . eg: soanrqube token and other parameters, is this possible?
there is no answer in https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000362164-Dependency-on-3rd-party-plugin-SonarLint-
Please sign in to leave a comment.
See https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html on how to add dependency on other plugins.
Regarding sonarlint specific questions, please address these to the vendor directly.
Enter a connection name, then select sonarqube and enter SonarQube server URL and then click next. Now choose Token or Login / Password and enter the value then click Next and the Finish. Prepaid Gift Balance
Yann Cebron i have already read this https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html .But it explain how to depend on third plugin which in my customize repository!!!!
@Ramonfergusonw55005 i want to use api to finsh these steps which you explained
You can mark sonarlint plugin as required dependency in your plugin. This will guarantee it will be installed.
Yann Cebron I understand what you mean, but I don’t know how to write and introduce sonarlint. Because my development environment cannot access the Internet, I build a custom plugin library and upload the sonarlint plugin, but what should I do in build.gradle and plugin.xml Can the configuration make my plug-in reference such as sonarlint?
build.gradle:it can not import
First, it's not `java` but `com.intellij.java`, see https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html#java
See https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-plugins and eventually https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-pluginsrepositories on how to configure non-Marketplace plugins.