idea.md: add a section about using Kotlin plugin

This commit is contained in:
Yann Cébron 2024-11-28 11:29:26 +01:00
parent 1676f3aa85
commit 3211c78d4d
2 changed files with 9 additions and 5 deletions

View File

@ -63,11 +63,11 @@ See [](intellij_community_plugins_extension_point_list.md) for API from bundled
## Java ## Java
See [](plugin_compatibility.md#java) on how to use Java-specific functionality. See [Java Plugin](plugin_compatibility.md#java) on how to use Java-specific functionality.
[PSI Cookbook](psi_cookbook.md#java-specific) lists a number of common operations for working with Java PSI. [PSI Cookbook](psi_cookbook.md#java-specific) lists a number of common operations for working with Java PSI.
Depending on exact functionality, a plugin can also target [](uast.md) to support multiple JVM languages, including Java and Kotlin. Depending on the exact functionality, a plugin can also target [](uast.md) to support multiple JVM languages, including Java and Kotlin.
Relevant Extension Points: Relevant Extension Points:
@ -81,3 +81,9 @@ Relevant Extension Points:
To use existing test base classes, add `TestFrameworkType.Plugin.Java` test-framework available from [](tools_intellij_platform_gradle_plugin_types.md#TestFrameworkType-Plugin). To use existing test base classes, add `TestFrameworkType.Plugin.Java` test-framework available from [](tools_intellij_platform_gradle_plugin_types.md#TestFrameworkType-Plugin).
Alternatively, specify `com.jetbrains.intellij.java:java-test-framework:$VERSION$` as `testImplementation` dependency explicitly (see [IntelliJ Platform Artifacts Repositories](intellij_artifacts.md#gradle-example-for-an-individual-module-from-the-intellij-platform)). Alternatively, specify `com.jetbrains.intellij.java:java-test-framework:$VERSION$` as `testImplementation` dependency explicitly (see [IntelliJ Platform Artifacts Repositories](intellij_artifacts.md#gradle-example-for-an-individual-module-from-the-intellij-platform)).
## Kotlin
Configure Kotlin [plugin dependency](plugin_dependencies.md) with plugin ID `org.jetbrains.kotlin`.
See also [UAST](uast.md) on how to support multiple JVM languages, including Kotlin.

View File

@ -16,9 +16,7 @@
This page describes developing plugins using the [Kotlin](https://kotlinlang.org) programming language. This page describes developing plugins using the [Kotlin](https://kotlinlang.org) programming language.
> To implement a plugin _operating_ on Kotlin code ([PSI](psi.md)) in the IDE, configure Kotlin [plugin dependency](plugin_dependencies.md) (`org.jetbrains.kotlin`). > To implement a plugin _operating_ on Kotlin code ([PSI](psi.md)) in the IDE, see [](idea.md#kotlin).
>
> See also [UAST](uast.md) on how to support multiple JVM languages, including Kotlin.
> >
{title="Operating on Kotlin code"} {title="Operating on Kotlin code"}