-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathbuild.gradle
45 lines (40 loc) · 1.11 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
plugins {
id 'java'
id "org.jetbrains.intellij" version "0.6.5"
id 'org.jetbrains.changelog' version '1.1.2'
}
apply plugin: 'org.jetbrains.changelog'
group 'com.dbb'
version '1.8.2'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
plugins = ["java"]
version '2020.1'
}
patchPluginXml {
sinceBuild('1')
untilBuild('203.*')
pluginDescription = {
def lines = rootProject.file('README.md').readLines()
// README中插件描述开始的标签
// def start = lines.indexOf('<!--plugin-desc-->')
// README中插件描述结束的标签
// def end = lines.indexOf('<!--/plugin-desc-->')
// def description = lines.subList(start + 1, end).join('\n')
org.jetbrains.changelog.ExtensionsKt.markdownToHTML(lines.join('\n'))
}
changeNotes = changelog.getUnreleased().toHTML()
}
test {
useJUnitPlatform()
}
repositories {
gradlePluginPortal()
}