74 Star 380 Fork 56

开源中国/intellij-gitee

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle.kts 2.16 KB
一键复制 编辑 原始数据 按行查看 历史
zyuyou 提交于 2024-08-21 02:21 +08:00 . 升级intellij-platform-gradle-plugin插件
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.date
fun properties(key: String) = project.findProperty(key)?.toString()
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.9.0"
id("org.jetbrains.intellij.platform") version "2.0.1"
id("org.jetbrains.changelog") version "2.0.0"
}
group = "com.gitee"
version = "${properties("pluginVersion")}.${properties("pluginBuildNumber")}"
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
intellijPlatform {
intellijIdeaCommunity(properties("ideaVersion")!!)
bundledPlugins("com.intellij.tasks", "Git4Idea")
instrumentationTools()
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
configurations {
implementation {
resolutionStrategy.failOnVersionConflict()
}
}
//intellij {
// version.set(properties("ideaVersion"))
//
// pluginName.set("intellij-gitee")
// plugins.set(listOf("tasks", "Git4Idea"))
//
// downloadSources.set(!System.getenv("CI_BUILD").toBoolean())
//
//}
intellijPlatform {
pluginConfiguration {
name = "intellij-gitee"
version = "${project.version}"
}
}
idea {
module {
isDownloadSources = !System.getenv("CI_BUILD").toBoolean()
}
}
tasks {
buildSearchableOptions {
enabled = false
}
publishPlugin {
token.set(properties("publishToken"))
channels.set(listOf("stable"))
}
patchPluginXml {
sinceBuild.set(properties("ideaBuildVersion"))
untilBuild.set("${properties("ideaBuildVersion")}.*")
changeNotes.set(
provider {
changelog.renderItem(
changelog.getOrNull("${project.version}")?.withHeader(false) ?: changelog.getLatest().withHeader(false),
Changelog.OutputType.HTML
)
}
)
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
}
changelog {
version.set("${project.version}")
path.set("${project.projectDir}/CHANGELOG.md")
header.set(provider { "[${version.get()}] - ${date()}" })
itemPrefix.set("-")
keepUnreleasedSection.set(true)
unreleasedTerm.set("[Unreleased]")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/oschina/intellij-gitee.git
git@gitee.com:oschina/intellij-gitee.git
oschina
intellij-gitee
intellij-gitee
develop

搜索帮助