mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
IJSDK-673
This commit is contained in:
parent
c31cda6c24
commit
bc62a36bbb
@ -13,15 +13,13 @@ The table below summarizes the `gradle-intellij-plugin` attributes to set in the
|
||||
|
||||
| `gradle-intellij-plugin` Attribute | Attribute Value |
|
||||
|-----------|-------|
|
||||
| [`intellij.type`](https://github.com/JetBrains/gradle-intellij-plugin/blob/master/README.md#intellij-platform-properties) | `IU` for IntelliJ IDEA Ultimate. |
|
||||
| [`intellij.version`](https://github.com/JetBrains/gradle-intellij-plugin/blob/master/README.md#intellij-platform-properties) | Set to the same `IU` BRANCH.BUILD as the GoLand target version, e.g. `192.7142.36` |
|
||||
| [`intellij.plugins`](https://github.com/JetBrains/gradle-intellij-plugin/blob/master/README.md#intellij-platform-properties) | `org.jetbrains.plugins.go:192.6603.23.335` for the Go plugin.<br>See below for Go plugin version information. |
|
||||
| [`runIde.ideaDirectory`](https://github.com/JetBrains/gradle-intellij-plugin/blob/master/README.md#running-dsl) | Path to locally installed target version of GoLand. For example, on macOS:<br>`/Users/<user name>/Library/Application Support/JetBrains/Toolbox/apps/Goland/ch-0/192.7142.48/GoLand.app/Contents` |
|
||||
| [`intellij.type`](https://github.com/JetBrains/gradle-intellij-plugin/blob/master/README.md#intellij-platform-properties) | `IU` for IntelliJ IDEA Ultimate. (The Go plugin isn't compatible with IntelliJ IDEA Community Edition.) |
|
||||
| [`intellij.version`](https://github.com/JetBrains/gradle-intellij-plugin/blob/master/README.md#intellij-platform-properties) | Set to the same `IU` BRANCH.BUILD as the GoLand target version, e.g. `193.5233.102` |
|
||||
| [`intellij.plugins`](https://github.com/JetBrains/gradle-intellij-plugin/blob/master/README.md#intellij-platform-properties) | `org.jetbrains.plugins.go:193.5233.102.83` for the Go plugin.<br>See below for Go plugin version information. |
|
||||
| [`runIde.ideaDirectory`](https://github.com/JetBrains/gradle-intellij-plugin/blob/master/README.md#running-dsl) | Path to locally installed target version of GoLand. For example, on macOS:<br>`/Users/<user name>/Library/Application Support/JetBrains/Toolbox/apps/Goland/ch-0/193.5233.112/GoLand.app/Contents` |
|
||||
|
||||
The required `org.jetbrains.plugins.go` plugin isn't compatible with IntelliJ IDEA Community edition but is compatible with IntelliJ IDEA Ultimate (`IU`) edition.
|
||||
Product compatibility is determined from the Go plugin [version page](http://plugins.jetbrains.com/plugin/9568-go/versions).
|
||||
The Go plugin isn't bundled with `IU`, so the Go plugin version must be explicitly declared and support the target GoLand (and `IU`) BRANCH.BUILD version.
|
||||
The correct Go plugin version is also determined from the Go plugin version page.
|
||||
The version of the Go plugin is explicitly declared because it isn't bundled with IntelliJ IDEA Ultimate Edition.
|
||||
Select a [version](http://plugins.jetbrains.com/plugin/9568-go/versions) of the Go plugin that is compatible with the IntelliJ Idea Ultimate version.
|
||||
|
||||
The dependency on the Go plugin APIs must be declared in the `plugin.xml` file.
|
||||
As described in [Modules Specific to Functionality](/basics/getting_started/plugin_compatibility.md#modules-specific-to-functionality) table, the `<depends>` tags must declare `com.intellij.modules.go`.
|
||||
@ -34,8 +32,7 @@ The dependency declaration is illustrated in the `plugin.xml` snippet below:
|
||||
<depends>com.intellij.modules.platform</depends>
|
||||
```
|
||||
## Available GoLand APIs
|
||||
Use the [Exploring APIs as a Consumer](/basics/getting_started/plugin_compatibility.html#exploring-apis-as-a-consumer) process to identify the library `intellij-go-<version>.jar`, where `<version>` in the JAR file name corresponds to the version of the Go plugin.
|
||||
For the `intellij.plugins` example attribute in the above table, the corresponding library would be `intellij-go-192.6603.23.335.jar`.
|
||||
Use the [Exploring APIs as a Consumer](/basics/getting_started/plugin_compatibility.md#exploring-apis-as-a-consumer) process to identify the library `intellij-go-<version>.jar`, where `<version>` corresponds to the version of the Go plugin.
|
||||
Test your plugin with any version of GoLand you intend to support.
|
||||
|
||||
## Open Source Plugins for GoLand
|
||||
|
Loading…
x
Reference in New Issue
Block a user