-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
91 lines (71 loc) · 2.16 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
id "org.jetbrains.intellij" version "1.13.3" apply false
id 'java'
id "org.jetbrains.grammarkit" version "${grammarKitPluginVersion}" apply false
id 'org.jetbrains.changelog' version '2.0.0'
}
repositories {
mavenCentral()
}
def htmlFixer = { htmlFile -> file(htmlFile).text.replace('<html>', '').replace('</html>', '') }
group pluginGroup
allprojects {
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'org.jetbrains.changelog'
sourceCompatibility = javaVersion
targetCompatibility = javaTargetVersion
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
version = pluginVersion
test {
scanForTestClasses false
include "**/*Test.class"
}
}
subprojects {
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
apply plugin: 'org.jetbrains.grammarkit'
changelog {
version = pluginVersion
path = "${project.rootProject.projectDir}/CHANGELOG.md"
headerParserRegex = ~/\d+\.\d+\.\d+/
itemPrefix = "-"
keepUnreleasedSection = true
unreleasedTerm = "[Unreleased]"
groups = ["Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"]
}
intellij {
version.set(ideaVersion)
updateSinceUntilBuild.set(true)
tasks {
"buildSearchableOptions" {
enabled = false
}
}
}
patchPluginXml {
if (customSinceBuild) {
sinceBuild.set(customSinceBuild)
}
if (customUntilBuild) {
untilBuild.set(customUntilBuild)
}
changeNotes.set(provider { changelog.getLatest().toHTML() })
pluginDescription.set(htmlFixer("${project.projectDir}/src/main/resources/META-INF/description.html"))
}
grammarKit {
}
runPluginVerifier {
ideVersions.set(pluginVerifierIdeVersions.split(',').toList())
}
test.testLogging.exceptionFormat = TestExceptionFormat.FULL
}
wrapper {
gradleVersion '7.3'
}
test.testLogging.exceptionFormat = TestExceptionFormat.FULL