-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathbuild.gradle
66 lines (55 loc) · 1.86 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
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.ChangelogSectionUrlBuilder
import org.jetbrains.changelog.ExtensionsKt
plugins {
id 'org.jetbrains.intellij' version '1.16.1'
id 'org.jetbrains.changelog' version '2.1.2'
}
apply plugin: 'org.jetbrains.changelog'
group project.pluginGroup
version project.pluginVersion
sourceCompatibility = 17
targetCompatibility = 17
repositories {
mavenLocal()
maven { url "https://maven.aliyun.com/repository/public" }
mavenCentral()
}
dependencies {
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
plugins = ['com.intellij.java', 'markdown']
pluginName = project.pluginName
version = project.platformVersion
type = project.platformType
downloadSources = true
updateSinceUntilBuild = false
buildSearchableOptions.enabled = false
}
patchPluginXml {
sinceBuild = project.pluginSinceBuild
untilBuild = project.pluginUntilBuild
pluginDescription.set(file(project.pluginDescription).getText('UTF-8'))
changeNotes.set(provider {
changelog.renderItem(
changelog.getLatest(),
Changelog.OutputType.HTML
)
})
}
changelog {
path = file("CHANGELOG.md").canonicalPath
header = "[${-> version.get()}] - ${ExtensionsKt.date("yyyy-MM-dd")}"
keepUnreleasedSection = true
unreleasedTerm = "[Unreleased]"
groups = ["Added", "Changed", "Deprecated", "Removed", "Fixed", "Security"]
lineSeparator = "\n"
combinePreReleases = true
sectionUrlBuilder = { repositoryUrl, currentVersion, previousVersion, isUnreleased -> "foo" } as ChangelogSectionUrlBuilder
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}