-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (42 loc) · 1.14 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
import org.gradle.api.JavaVersion.VERSION_11
import org.jetbrains.changelog.*
plugins {
id("org.jetbrains.intellij") version "1.9.0"
kotlin("jvm") version "1.7.20-RC"
id("org.jetbrains.changelog") version "1.3.1"
id("com.github.ben-manes.versions") version "0.42.0"
}
group = "org.sourcejump"
version = "0.0.1-SNAPSHOT"
repositories.mavenCentral()
dependencies {
implementation(kotlin("stdlib"))
implementation("org.kohsuke:github-api:1.308")
// implementation("info.debatty:java-string-similarity:2.0.0")
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version.set("2022.2")
}
changelog {
version.set("0.0.1")
path.set("${project.projectDir}/CHANGES.md")
header.set(provider { "[${project.version}] - ${date()}" })
itemPrefix.set("-")
unreleasedTerm.set("Unreleased")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = VERSION_11.toString()
}
publishPlugin {
val intellijPublishToken: String? by project
token.set(intellijPublishToken)
}
patchPluginXml {
sinceBuild.set("203.7717.56")
changeNotes.set(provider {
changelog.getAll().values.take(2).last().toHTML()
})
}
}