Files
show-comment/build.gradle

178 lines
7.2 KiB
Groovy
Raw Normal View History

2022-02-11 00:23:01 +08:00
plugins {
// Newhttps://github.com/JetBrains/gradle-intellij-plugin/releases
2022-02-11 00:23:01 +08:00
id 'org.jetbrains.intellij' version '1.3.1'
}
group 'io.github.linwancen'
version '2.12.0.' + (new Date().format('yyyy.MM.dd_HH.mm'))
2022-02-11 00:23:01 +08:00
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
def system = org.gradle.internal.os.OperatingSystem.current()
def ideTypeStr = String.valueOf(ideType)
2022-02-11 00:23:01 +08:00
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
type = ideType
if (system.isMacOsX()) {
localPath = "/Applications/IntelliJ IDEA.app"
} else {
version = ideaVersion
2022-10-27 03:15:33 +08:00
// localPath = "D:/Program Files/JetBrains/IntelliJ IDEA 2021.2.2"
}
// see https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#intellij-extension-plugins
plugins = [
'Pythonid:201.6668.121',
2022-10-27 03:15:33 +08:00
// 'Pythonid:212.5284.44',
]
if ('IC' == ideTypeStr || 'IU' == ideTypeStr) {
plugins.add('java')
plugins.add('org.jetbrains.kotlin')
}
if (!ideTypeStr.endsWith('C')) {
plugins.add('JavaScript')
plugins.add('com.intellij.database')
plugins.add('org.jetbrains.plugins.go:201.6668.60.126')
2022-10-27 03:15:33 +08:00
// plugins.add('org.jetbrains.plugins.go:212.5284.31')
}
}
sourceSets {
// can not use plugin in IDEA IU
if ('RD' == ideTypeStr) {
main {
java {
srcDirs = ['src/main/java', 'src/main/rider']
}
}
test {
java {
srcDirs = ['src/test/java', 'src/test/rider']
}
}
} else {
main {
java {
srcDirs = ['src/main/java', 'src/main/idea']
}
}
test {
java {
srcDirs = ['src/test/java', 'src/test/idea']
}
}
}
2022-02-11 00:23:01 +08:00
}
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 = """
<h2>English Change Notes:</h2>
2022-03-07 23:58:57 +08:00
<ul>
<li>2.12 Add project-view-tree support Markdown and Asciidoc
<li>2.11 Add project-view-tree description from pom.xml and build.gradle
2023-08-31 08:08:34 +08:00
<li>2.10 Add line-end-comment not doc comment
<li>2.09 Add line-end-comment support Python doc strings
<li>2.08 Add i18n and chinese
<li>2.07 Add global-setting reset default
2022-12-09 23:02:59 +08:00
<li>2.06 Add project-view-tree xx-abc.xxx from Abc.java doc
<li>2.05 Add line-end-comment json doc from xxx.json.tsv
<li>2.04 Add line-end-comment json dict doc from (key).tsv
<li>2.03 Add live-templates input `doc` `docc` -> /** */
<li>2.02 Add line-end-comment show before doc for `isA(xxx)` and `a.set(b.get)`
<li>2.01 Add line-end-comment support SQL, JavaScript, Python, Golang, Kotlin
<li>2.00 support all JetBrains IDE
<li>1.24 Add PopupMenu Copy FileName:LineNumber
<li>1.23 Add project-view-tree setting for show when compact middle packages
<li>1.22 Add PopupMenu Copy ClassName.MethodName
<li>1.21 Add line-end-comment default skip only English when system lang is not `en`
<li>1.20 Add line-end-comment get doc first sentence checkbox
<li>1.19 Add line-end-comment supper doc at @Override, support doc tag like @author
<li>1.18 Add External Comment effect at previous layer when folder named -1
<li>1.17 Add line-end-comment skip doc text or class/member name by regexp
<li>1.16 Add line-end-comment skip when comments have been added
<li>1.15 Add line-end-comment support COBOL ext '', 'cbl', 'cob', 'cobol'
<li>1.14 Add line-end-comment skip Annotation, skip only English (ASCII)
<li>1.13 Add line-end-comment Copy With Line Comment & Add Line Comment
<li>1.12 External Comment for COBOL etc
<li>1.11 Add json key jump to field
<li>1.10 Add project-view-tree for package from parent or other project
<li>1.9 Add project-view-tree for "xx-ClassNameOrSimpleName.json" and SPI file
<li>1.8 line-end-comment for "xx-ClassNameOrSimpleName.json"
<li>1.7 Add line-end-comment setting for prefix and count
<li>1.6 Add line-end-comment independent switch for call, new, ref
<li>1.5 Add line-end-comment find next loop when none
<li>1.4 Add line-end-comment find element right to left
<li>1.3 project-view-tree file and member comment
2022-10-23 20:24:25 +08:00
<li>1.2 Add line-end-comment settings for class prefix filter
<li>1.1 Add line-end-comment settings for text color
2022-03-07 23:58:57 +08:00
</ul>
<h2>:</h2>
2022-03-07 23:58:57 +08:00
<ul>
<li>2.12 Markdown and Asciidoc
<li>2.11 pom.xml build.gradle
2023-08-31 08:08:34 +08:00
<li>2.10
<li>2.09 Python
<li>2.08
<li>2.07
2022-12-09 23:02:59 +08:00
<li>2.06 xx-abc.xxx Abc.java
2022-10-30 21:00:10 +08:00
<li>2.05 json xxx.json.tsv
<li>2.04 json .tsv
<li>2.03 doc / docc 等生成 /** */
<li>2.02 `isA(xxx)` `a.set(b.get)`
<li>2.01 SQL, JavaScript, Python, Golang, Kotlin
<li>2.00 JetBrains
<li>1.24 :
<li>1.23
<li>1.22 .
<li>1.21
<li>1.20
<li>1.19 @Override @author
<li>1.18 tsv -1
<li>1.17
<li>1.16
<li>1.15 COBOL cblcobcobol
<li>1.14
<li>1.13
<li>1.12 tsv COBOL
<li>1.11 json
<li>1.10
<li>1.9 "xx-类全名或简名.json" SPI
<li>1.8 "xx-类全名或简名.json"
<li>1.7
<li>1.6 new
<li>1.5
<li>1.4
<li>1.3 ()
<li>1.2
<li>1.1
2022-03-07 23:58:57 +08:00
</ul>
2022-02-11 00:23:01 +08:00
"""
}
test {
useJUnitPlatform()
}
publishPlugin {
token = System.getenv("PUBLISH_TOKEN")
}