Skip to content

Commit

Permalink
refactor: Use LSP4IJ IJ plugin
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr committed Dec 5, 2023
1 parent 7caf20a commit e9d160c
Show file tree
Hide file tree
Showing 189 changed files with 222 additions and 13,902 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
## Description
<!-- Plugin description -->
A plugin aimed at Quarkus based development, providing easy bootstrapping and code assist from [Quarkus](https://quarkus.io/) related assets and [Qute](https://quarkus.io/guides/qute-reference).

To provide those support, the plugin consumes:

* [MicroProfile Language Server](https://github.com/eclipse/lsp4mp/tree/master/microprofile.ls)
* [Qute Language Server](https://github.com/redhat-developer/quarkus-ls/tree/master/qute.ls)

by using [LSP4IJ (Language Server Protocol for Intellij)](https://github.com/redhat-developer/lsp4ij).

<!-- Plugin description end -->

### application.properties support
Expand Down
16 changes: 11 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,28 +86,34 @@ dependencies {
implementation("io.quarkus:quarkus-arc:$quarkusVersion") {
isTransitive = false
}
implementation("org.eclipse.lsp4mp:org.eclipse.lsp4mp.ls:$lsp4mpVersion")
implementation("org.eclipse.lsp4j:org.eclipse.lsp4j:0.15.0")
// Required by lsp4j as the version from IJ is incompatible
implementation("org.eclipse.lsp4mp:org.eclipse.lsp4mp.ls:$lsp4mpVersion") {
exclude("org.eclipse.lsp4j")
}
implementation("com.google.code.gson:gson:2.8.9")
implementation("com.vladsch.flexmark:flexmark:0.62.2")

// Exclude all lsp4j dependencies to use LSP4J from LSP4IJ
lsp("org.eclipse.lsp4mp:org.eclipse.lsp4mp.ls:$lsp4mpVersion:uber") {
isTransitive = false
exclude("org.eclipse.lsp4j")
}
lsp("com.redhat.microprofile:com.redhat.quarkus.ls:$quarkusLsVersion") {
isTransitive = false
exclude("org.eclipse.lsp4j")
}
implementation("com.redhat.microprofile:com.redhat.qute.ls:$quteLsVersion") {
exclude("org.eclipse.lsp4j")
}
implementation("com.redhat.microprofile:com.redhat.qute.ls:$quteLsVersion")
lsp("com.redhat.microprofile:com.redhat.qute.ls:$quteLsVersion:uber") {
isTransitive = false
exclude("org.eclipse.lsp4j")
}
implementation(files(layout.buildDirectory.dir("server")) {
builtBy("copyDeps")
})

testImplementation("com.redhat.devtools.intellij:intellij-common-ui-test-library:0.2.0")
testImplementation("org.assertj:assertj-core:3.19.0")

}

// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ platformType=IC
platformVersion=2022.2.3
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
platformPlugins=com.intellij.java, maven, gradle-java, properties, yaml, com.redhat.devtools.intellij.telemetry:1.0.0.44
platformPlugins=com.intellij.java, maven, gradle-java, properties, yaml, com.redhat.devtools.intellij.telemetry:1.0.0.44
# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion=8.4
channel=nightly
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e9d160c

Please sign in to comment.