mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
tools_intellij_platform_gradle_plugin.md: rename "Usage" to "Setup"
This commit is contained in:
parent
523ea3124d
commit
0176529f72
@ -1,4 +1,4 @@
|
||||
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
|
||||
# IntelliJ Platform Gradle Plugin (2.x)
|
||||
|
||||
@ -40,7 +40,7 @@ IntelliJ Platform Gradle Plugin 2.x requires the following *minimal* versions:
|
||||
|
||||
See <control>Gradle JVM</control> in <ui-path>Settings | Build, Execution, Deployment | Build Tools | Gradle</ui-path>.
|
||||
|
||||
## Usage
|
||||
## Setup
|
||||
|
||||
> Note that the plugin has a new ID `org.jetbrains.intellij.platform`.
|
||||
>
|
||||
@ -72,7 +72,7 @@ plugins {
|
||||
|
||||
If migrating from the [](tools_gradle_intellij_plugin.md), replace the old `org.jetbrains.intellij` identifier to `org.jetbrains.intellij.platform` and apply its latest `%intellij-platform-gradle-plugin-version%` version.
|
||||
|
||||
### Snapshot Release
|
||||
### Using Snapshot Release
|
||||
|
||||
To use the latest snapshot version of this plugin, add the following to the Gradle Settings file:
|
||||
|
||||
@ -123,7 +123,7 @@ When working in a [](#multi-module-project-structure) it is required to use [](t
|
||||
|
||||
The [](tools_intellij_platform_gradle_plugin_plugins.md#settings) plugin (`org.jetbrains.intellij.platform.settings`) allows for adding plugin development related repositories right in the <path>settings.gradle.kts</path> file if project configuration involves [](#configuration.dependencyResolutionManagement).
|
||||
|
||||
### Attaching Sources
|
||||
### Attaching Sources in the IDE
|
||||
|
||||
To attach IntelliJ Platform sources in the IDE, the <control>Download sources</control> setting has to be enabled in IDE versions 2023.2 and later.
|
||||
This option respects the plugin's [](tools_intellij_platform_gradle_plugin_gradle_properties.md#downloadSources) property, which is enabled by default.
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
|
||||
# IntelliJ Platform Extension
|
||||
|
||||
@ -13,7 +13,7 @@ It consists of sections dedicated to the general Gradle plugin configuration, <p
|
||||
## IntelliJ Platform
|
||||
{#intellijPlatform}
|
||||
|
||||
After the IntelliJ Platform Gradle Plugin is [applied](tools_intellij_platform_gradle_plugin.md#usage), the `intellijPlatform` extension can be used to configure the plugin and common settings of the provided tasks.
|
||||
After the IntelliJ Platform Gradle Plugin is [applied](tools_intellij_platform_gradle_plugin.md#setup), the `intellijPlatform` extension can be used to configure the plugin and common settings of the provided tasks.
|
||||
|
||||
**Example:**
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
|
||||
|
||||
# IntelliJ Platform Testing Extension
|
||||
|
||||
@ -15,7 +15,7 @@ For each of the custom tasks, a dedicated sandbox is created to isolate them for
|
||||
|
||||
{#intellijPlatformTesting}
|
||||
|
||||
After the IntelliJ Platform Gradle Plugin is [applied](tools_intellij_platform_gradle_plugin.md#usage), the `intellijPlatformTesting` extension can be used for registering new tasks to fulfil specific requirements of the project.
|
||||
After the IntelliJ Platform Gradle Plugin is [applied](tools_intellij_platform_gradle_plugin.md#setup), the `intellijPlatformTesting` extension can be used for registering new tasks to fulfil specific requirements of the project.
|
||||
|
||||
The extension exposes four `NamedDomainObjectContainers` which allow for creating new objects of given types.
|
||||
Registering of a custom task which allows for adjusting the IntelliJ Platform type and version can be done by using one of the below containers, depending on the task purpose.
|
||||
|
@ -103,7 +103,7 @@ The <path>plugin.xml</path> configuration file must specify the dependency on th
|
||||
### IDE Setup
|
||||
|
||||
Since 2024.2, LSP API sources are provided with the `IntelliJ IDEA Ultimate sources` artifact.
|
||||
See [](tools_intellij_platform_gradle_plugin.md#attaching-sources) on how to enable downloading sources.
|
||||
See [](tools_intellij_platform_gradle_plugin.md#attaching-sources-in-the-ide) on how to enable downloading sources.
|
||||
Then, use <ui-path>Navigate | Class...</ui-path> to open the `LspServerManager` class.
|
||||
In the opened editor, invoke <control>Download IntelliJ Platform sources</control> to download and attach sources.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user