-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
57 lines (47 loc) · 1.3 KB
/
build.gradle.kts
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
import org.jetbrains.changelog.closure
import org.jetbrains.changelog.markdownToHTML
plugins {
id("org.jetbrains.intellij") version "0.4.26"
id("org.jetbrains.changelog") version "0.5.0"
}
val pluginGroup: String by project
val pluginName_: String by project
val pluginVersion: String by project
val platformVersion: String by project
group = pluginGroup
version = pluginVersion
buildscript {
repositories {
// Workaround: https://github.com/JetBrains/gradle-intellij-plugin/issues/537
maven("https://jetbrains.bintray.com/intellij-plugin-service")
}
}
repositories {
mavenCentral()
jcenter()
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
pluginName = pluginName_
version = platformVersion
updateSinceUntilBuild = false
}
tasks {
// Set the compatibility versions to 1.8
withType<JavaCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
patchPluginXml {
changeNotes(
closure {
changelog.getLatest().toHTML()
}
)
}
publishPlugin {
dependsOn("patchChangelog")
token(System.getenv("INTELLIJ_PUBLISH_TOKEN"))
channels(pluginVersion.split('-').getOrElse(1) { "default" }.split('.').first())
}
}