Merge pull request #121 from zolotov/patch-5

Updating maven interface API
This commit is contained in:
Dmitry Jemerov 2018-10-08 14:29:01 +02:00 committed by GitHub
commit a42b897cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ You can download a plugin update from the [plugin repository](https://plugins.je
URL format is the following:
```
https://plugins.jetbrains.com/maven/com/jetbrains/plugins/<plugin_xml_id>/<version>/<plugin_xml_id>-<version>-<channel>.<extension>
https://plugins.jetbrains.com/maven/<channel>/com/jetbrains/plugins/<plugin_xml_id>/<version>/<plugin_xml_id>-<version>.<extension>
```
Where
@ -24,12 +24,10 @@ E.g. to download *[VueJs plugin version 1.0.1](https://plugins.jetbrains.com/plu
Also, you can use Gradle or Maven to retrieve a plugin as a maven-dependency:
* **groupId** is always **com.jetbrains.plugins**;
* **groupId** is either **\<channel>.com.jetbrains.plugins** or **com.jetbrains.plugins** for *Stable* channel;
* **artifactId** is **pluginXmlId** (pluginXmlId is specified as a *Plugin XML ID* parameter on the right of the plugin's individual update page);
* **classifier** is a **channel** (empty classifier means default *Stable* channel).
**build.gradle**
```
@ -38,7 +36,8 @@ repositories {
}
dependencies {
compile 'com.jetbrains.plugins:<plugin_xml_id>:<version>@<extension>'
compile 'com.jetbrains.plugins:<plugin_xml_id>:<version>' // for the plugin from Stable channel
compile '<channel>.com.jetbrains.plugins:<plugin_xml_id>:<version>' // for the plugin from non-default channel
}
```