- 添加 pnpm workspace 和 Turborepo 配置 - 创建 packages/shared 共享类型和工具 - 创建 packages/core-sdk 核心 SDK - 创建 packages/vscode-extension VSCode 插件 - 创建 packages/jetbrains-plugin JetBrains 插件基础结构 - 添加 README 文档
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
plugins {
|
|
id("java")
|
|
id("org.jetbrains.kotlin.jvm") version "1.9.21"
|
|
id("org.jetbrains.intellij") version "1.16.1"
|
|
}
|
|
|
|
group = "com.devtools.collector"
|
|
version = "0.1.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("com.google.code.gson:gson:2.10.1")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
|
|
}
|
|
|
|
intellij {
|
|
version.set("2023.3")
|
|
type.set("IC") // IntelliJ IDEA Community Edition
|
|
plugins.set(listOf())
|
|
}
|
|
|
|
tasks {
|
|
withType<JavaCompile> {
|
|
sourceCompatibility = "17"
|
|
targetCompatibility = "17"
|
|
}
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "17"
|
|
}
|
|
|
|
patchPluginXml {
|
|
sinceBuild.set("233")
|
|
untilBuild.set("243.*")
|
|
}
|
|
|
|
signPlugin {
|
|
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
|
|
privateKey.set(System.getenv("PRIVATE_KEY"))
|
|
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
|
|
}
|
|
|
|
publishPlugin {
|
|
token.set(System.getenv("PUBLISH_TOKEN"))
|
|
}
|
|
}
|
|
|