-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathbuild.gradle.kts
executable file
·86 lines (72 loc) · 1.9 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
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
import org.jetbrains.changelog.*
import org.jetbrains.changelog.Changelog.OutputType.HTML
import org.jetbrains.intellij.tasks.*
plugins {
idea apply true
kotlin("jvm") version "1.8.0"
id("org.jetbrains.intellij") version "1.11.0"
id("org.jetbrains.changelog") version "2.0.0"
id("com.github.ben-manes.versions") version "0.44.0"
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_17.toString()
}
named<Zip>("buildPlugin") {
dependsOn("test")
archiveFileName.set("AceJump.zip")
}
runIde {
dependsOn("test")
findProperty("luginDev")?.let { args = listOf(projectDir.absolutePath) }
}
publishPlugin {
val intellijPublishToken: String? by project
token.set(intellijPublishToken)
}
patchPluginXml {
sinceBuild.set("223.7571.182")
changeNotes.set(provider {
changelog.renderItem(changelog.getAll().values.take(2).last(), HTML)
})
}
runPluginVerifier {
ideVersions.set(listOf("2022.2"))
}
// Remove pending: https://youtrack.jetbrains.com/issue/IDEA-278926
@Suppress("UNUSED_VARIABLE")
val test by getting(Test::class) {
isScanForTestClasses = false
// Only run tests from classes that end with "Test"
include("**/AceTest.class")
include("**/ExternalUsageTest.class")
include("**/LatencyTest.class")
}
}
kotlin.jvmToolchain {
run {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
changelog {
version.set("3.8.10")
path.set("${project.projectDir}/CHANGES.md")
header.set(provider { "[${project.version}] - ${date()}" })
itemPrefix.set("-")
unreleasedTerm.set("Unreleased")
}
repositories {
mavenCentral()
}
dependencies {
// https://github.com/anyascii/anyascii
implementation("com.anyascii:anyascii:0.3.1")
}
intellij {
version.set("2022.3")
pluginName.set("AceJump")
updateSinceUntilBuild.set(false)
plugins.set(listOf("java"))
}
group = "org.acejump"
version = "3.8.10"