Skip to content

Commit d226413

Browse files
committed
fix: Remove LSP4J libraries.
Signed-off-by: azerr <[email protected]>
1 parent 7ba22ae commit d226413

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

build.gradle.kts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ plugins {
2626
group = prop("pluginGroup")
2727
version = prop("pluginVersion")
2828

29-
val lsp4jVersion = prop("lsp4jVersion")
3029
val lsp4jDebugVersion = prop("lsp4jDebugVersion")
3130
val flexmarkVersion = prop("flexmarkVersion")
3231

@@ -74,6 +73,7 @@ dependencies {
7473
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace.
7574
plugins(properties("platformPlugins").map { it.split(',') })
7675

76+
// Tu ajoutes les modules LSP4J de la plateforme JetBrains
7777
if (ideaVersionInt >= 252) {
7878
// Since 2025.2, JetBrains moved spellchecker in a new "intellij.spellchecker" module
7979
bundledModule("intellij.spellchecker")
@@ -84,12 +84,6 @@ dependencies {
8484
testFramework(TestFrameworkType.Platform)
8585
}
8686

87-
implementation("org.eclipse.lsp4j:org.eclipse.lsp4j:$lsp4jVersion") {
88-
exclude(group = "org.eclipse.lsp4j", module="org.eclipse.lsp4j.jsonrpc")
89-
}
90-
implementation("org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc:$lsp4jVersion") {
91-
exclude(group = "com.google.code.gson", module = "gson")
92-
}
9387
implementation("org.eclipse.lsp4j:org.eclipse.lsp4j.debug:$lsp4jDebugVersion") {
9488
exclude(group = "org.eclipse.lsp4j", module = "org.eclipse.lsp4j.jsonrpc.debug")
9589
}
@@ -109,7 +103,7 @@ dependencies {
109103
// Set the JVM language level used to build the project.
110104
kotlin {
111105
jvmToolchain {
112-
languageVersion = JavaLanguageVersion.of(17)
106+
languageVersion = JavaLanguageVersion.of(21)
113107
vendor = JvmVendorSpec.JETBRAINS
114108
}
115109
}

gradle.properties

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ pluginSinceBuild=242
1212
#pluginUntilBuild=243.*
1313

1414
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
15-
platformType=IC
16-
platformVersion=2024.2
17-
platformBundledPlugins=org.jetbrains.plugins.textmate,com.intellij.properties,org.jetbrains.plugins.terminal
15+
#platformType=IU
16+
#platformVersion=253.27864.23
17+
platformType=IU
18+
platformVersion=253.28294.169
19+
platformBundledPlugins=org.jetbrains.plugins.textmate,com.intellij.properties,org.jetbrains.plugins.terminal,com.intellij.modules.lsp
1820

1921
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
2022
platformPlugins=com.redhat.devtools.intellij.telemetry:1.2.1.62

src/main/resources/META-INF/plugin.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,13 @@
283283
</description>
284284

285285
<depends>com.intellij.modules.platform</depends>
286+
<depends>com.intellij.modules.lsp</depends>
286287
<depends optional="true" config-file="plugin-textmate.xml">org.jetbrains.plugins.textmate</depends>
287288
<depends optional="true" config-file="plugin-telemetry.xml">com.redhat.devtools.intellij.telemetry</depends>
288289
<depends optional="true" config-file="plugin-json.xml">com.intellij.modules.json</depends>
289290
<depends optional="true" config-file="plugin-terminal.xml">org.jetbrains.plugins.terminal</depends>
290291
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
291-
<idea-version since-build="242.*"/>
292+
<idea-version since-build="252.*"/>
292293

293294
<!-- Server Installer support -->
294295
<extensionPoints>

0 commit comments

Comments
 (0)