56 lines
1.4 KiB
Groovy
56 lines
1.4 KiB
Groovy
plugins {
|
|
id 'org.jetbrains.intellij' version '1.3.1'
|
|
id 'java'
|
|
}
|
|
|
|
group 'io.github.linwancen'
|
|
version '1.5.0.' + (new Date().format('yyyy.MM.dd_HH.mm'))
|
|
|
|
apply plugin: 'java'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
|
|
}
|
|
|
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
intellij {
|
|
version = ideaVersion
|
|
plugins = ['java']
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
tasks.withType(Javadoc) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
patchPluginXml {
|
|
// The performance of 2019.3 has been greatly improved.
|
|
// change plugins without restarting the IDE in 2020.1.
|
|
sinceBuild = '201.1'
|
|
untilBuild = ''
|
|
changeNotes = """
|
|
<ul>
|
|
<li>1.1 Add end-of-line text color settings | 添加行末文本颜色配置
|
|
<li>1.2 Add end-of-line comment class prefix filter settings | 添加行末注释类前缀配置
|
|
<li>1.3 Support class in tree, constructor and field type in line end | 支持 class 树节点、构造方法和字段的行末注释
|
|
<li>1.4 Find element right to left for end-of-line comment | 从右往左查找行末注释对象
|
|
<li>1.5 Support find next when not comment | 支持没有注释时查找下一个对象
|
|
</ul>
|
|
"""
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
publishPlugin {
|
|
token = System.getenv("PUBLISH_TOKEN")
|
|
} |