cleaner LSP4IJ dep

This commit is contained in:
FalsePattern 2024-11-04 10:57:06 +01:00
parent aa1b8e3561
commit 9e65bcc639
Signed by: falsepattern
GPG key ID: E930CDEC50C50E23
3 changed files with 13 additions and 3 deletions

View file

@ -68,6 +68,17 @@ allprojects {
} }
repositories { repositories {
exclusiveContent {
forRepository {
maven {
setUrl("https://mvn.falsepattern.com/releases")
name = "mavenpattern"
}
}
filter {
includeModule("com.redhat.devtools.intellij", "lsp4ij")
}
}
mavenCentral() mavenCentral()
intellijPlatform { intellijPlatform {

View file

@ -15,6 +15,7 @@ dependencies {
exclude("org.eclipse.lsp4j", "org.eclipse.lsp4j.jsonrpc") exclude("org.eclipse.lsp4j", "org.eclipse.lsp4j.jsonrpc")
exclude("com.google.code.gson", "gson") exclude("com.google.code.gson", "gson")
} }
compileOnly("org.eclipse.lsp4j:org.eclipse.lsp4j:$lsp4jVersion")
} }
configurations[Constants.Configurations.INTELLIJ_PLATFORM_BUNDLED_PLUGINS].dependencies.configureEach { configurations[Constants.Configurations.INTELLIJ_PLATFORM_BUNDLED_PLUGINS].dependencies.configureEach {
if (this is ExternalModuleDependency) { if (this is ExternalModuleDependency) {

View file

@ -9,14 +9,12 @@ plugins {
val lsp4ijVersion: String by project val lsp4ijVersion: String by project
val lsp4jVersion: String by project val lsp4jVersion: String by project
val lsp4ijNightly = property("lsp4ijNightly").toString().toBoolean()
val lsp4ijDepString = "${if (lsp4ijNightly) "nightly." else ""}com.jetbrains.plugins:com.redhat.devtools.lsp4ij:$lsp4ijVersion"
dependencies { dependencies {
intellijPlatform { intellijPlatform {
create(IntelliJPlatformType.IntellijIdeaCommunity, providers.gradleProperty("ideaCommunityVersion")) create(IntelliJPlatformType.IntellijIdeaCommunity, providers.gradleProperty("ideaCommunityVersion"))
} }
intellijPlatformPluginDependency(lsp4ijDepString) compileOnly("com.redhat.devtools.intellij:lsp4ij:$lsp4ijVersion")
compileOnly("org.eclipse.lsp4j:org.eclipse.lsp4j:$lsp4jVersion") compileOnly("org.eclipse.lsp4j:org.eclipse.lsp4j:$lsp4jVersion")
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-core:1.6.3") compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-core:1.6.3")
} }