plugins {
id 'org.jetbrains.intellij' version '1.3.1'
id 'java'
}
group 'io.github.linwancen'
version '1.9.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 = """
English Change Notes:
- 1.9 Add project-view-tree-comment for "xx ClassNameOrSimpleName.json" and SPI file
- 1.8 Add line-end-comment for "xx ClassNameOrSimpleName.json"
- 1.7 Add line-end-comment setting for prefix and count
- 1.6 Add line-end-comment independent switch for call, new, ref
- 1.5 Add line-end-comment find next loop when none
- 1.4 Add line-end-comment find element right to left
- 1.3 Add project-view-tree-comment
- 1.2 Add line-end-comment settings fro class prefix filter
- 1.1 Add line-end-comment settings for text color
Chinese Change Notes:
- 1.9 增加 "xx 类全名或简名.json" 和 SPI 项目导航栏注释
- 1.8 增加 "xx 类全名或简名.json" 行末注释
- 1.7 增加 行末注释前缀和对象数设置
- 1.6 增加 行末调用,new,引用注释独立开关
- 1.5 增加 没有注释时循环查找下一个对象
- 1.4 增加 从右往左查找行末注释对象
- 1.3 增加 项目导航栏注释
- 1.2 增加 行末注释类前缀配置
- 1.1 增加 行末文本颜色配置
"""
}
test {
useJUnitPlatform()
}
publishPlugin {
token = System.getenv("PUBLISH_TOKEN")
}