ZigBrains/cidr/build.gradle.kts

46 lines
1.6 KiB
Text
Raw Normal View History

import de.undercouch.gradle.tasks.download.Download
2024-11-04 02:52:00 +01:00
import org.jetbrains.intellij.platform.gradle.Constants
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
plugins {
id("de.undercouch.download") version("5.6.0")
}
val lsp4jVersion: String by project
2024-11-04 02:52:00 +01:00
val clionVersion: String by project
2024-11-28 13:17:18 +01:00
val useInstaller = property("useInstaller").toString().toBoolean()
val genOutputDir = layout.buildDirectory.dir("generated-resources")
sourceSets["main"].resources.srcDir(genOutputDir)
tasks {
register<Download>("downloadProps") {
onlyIfModified(true)
useETag(true)
src("https://falsepattern.com/zigbrains/msvc.properties")
dest(genOutputDir.map { it.file("msvc.properties") })
}
processResources {
dependsOn("downloadProps")
}
}
dependencies {
intellijPlatform {
2024-11-28 13:17:18 +01:00
create(IntelliJPlatformType.CLion, clionVersion, useInstaller = useInstaller)
2024-11-04 02:52:00 +01:00
bundledPlugins("com.intellij.clion", "com.intellij.cidr.base", "com.intellij.nativeDebug")
}
implementation(project(":core")) {
isTransitive = false
}
implementation("org.eclipse.lsp4j:org.eclipse.lsp4j.debug:$lsp4jVersion") {
exclude("org.eclipse.lsp4j", "org.eclipse.lsp4j")
exclude("org.eclipse.lsp4j", "org.eclipse.lsp4j.jsonrpc")
exclude("com.google.code.gson", "gson")
}
2024-11-04 10:57:06 +01:00
compileOnly("org.eclipse.lsp4j:org.eclipse.lsp4j:$lsp4jVersion")
2024-11-04 02:52:00 +01:00
}
configurations[Constants.Configurations.INTELLIJ_PLATFORM_BUNDLED_PLUGINS].dependencies.configureEach {
if (this is ExternalModuleDependency) {
this.isTransitive = false
}
}