ZigBrains/modules/lsp/build.gradle.kts

43 lines
1.6 KiB
Text
Raw Normal View History

2024-10-31 01:16:06 +01:00
/*
* This file is part of ZigBrains.
*
* Copyright (C) 2023-2024 FalsePattern
* All Rights Reserved
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* ZigBrains is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, only version 3 of the License.
*
* ZigBrains is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ZigBrains. If not, see <https://www.gnu.org/licenses/>.
*/
2024-10-29 23:20:12 +01:00
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
2024-10-31 23:05:38 +01:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2024-10-29 23:20:12 +01:00
val lsp4ijVersion: 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"
2024-10-31 23:05:38 +01:00
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xcontext-receivers"
}
}
2024-10-29 23:20:12 +01:00
dependencies {
intellijPlatform {
create(IntelliJPlatformType.IntellijIdeaCommunity, providers.gradleProperty("ideaCommunityVersion"))
}
intellijPlatformPluginDependency(lsp4ijDepString)
compileOnly("org.eclipse.lsp4j:org.eclipse.lsp4j:$lsp4jVersion")
2024-10-31 01:16:06 +01:00
implementation(project(":core"))
2024-10-29 23:20:12 +01:00
}