74 Star 388 Fork 45

开源中国 / intellij-gitee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle.kts 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
zyuyou 提交于 2023-07-26 23:43 . release for 2023.1.0
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.7.20"
id("org.jetbrains.intellij") version "1.13.3"
id("org.jetbrains.changelog") version "2.0.0"
}
group = "com.gitee"
version = "${properties("pluginVersion")}.${properties("pluginBuildNumber")}"
repositories {
mavenCentral()
}
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())
}
tasks {
buildSearchableOptions {
enabled = false
}
publishPlugin {
token.set(properties("publishToken"))
channels.set(listOf("stable"))
}
patchPluginXml {
version.set("${project.version}")
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]")
}
Java
1
https://gitee.com/oschina/intellij-gitee.git
git@gitee.com:oschina/intellij-gitee.git
oschina
intellij-gitee
intellij-gitee
develop

搜索帮助