-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathbuild.gradle.kts
executable file
·85 lines (71 loc) · 1.88 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
import org.jetbrains.changelog.Changelog.OutputType.HTML
import org.jetbrains.changelog.date
plugins {
idea
kotlin("jvm") version "1.8.20" // https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library
id("org.jetbrains.intellij") version "1.16.0"
id("org.jetbrains.changelog") version "2.2.0"
id("com.github.ben-manes.versions") version "0.49.0"
}
tasks {
named<Zip>("buildPlugin") {
dependsOn("test")
archiveFileName = "AceJump.zip"
}
runIde {
dependsOn("test")
findProperty("luginDev")?.let { args = listOf(projectDir.absolutePath) }
}
publishPlugin {
val intellijPublishToken: String? by project
token = intellijPublishToken
}
patchPluginXml {
sinceBuild = "223.7571.182"
changeNotes = provider {
changelog.renderItem(changelog.getAll().values.take(2).last(), HTML)
}
}
runPluginVerifier {
ideVersions = listOf("233.11361.10-EAP-SNAPSHOT")
}
// Remove pending: https://youtrack.jetbrains.com/issue/IDEA-278926
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(17)
sourceSets.all {
languageSettings.apply {
languageVersion = "2.0"
}
}
}
val acejumpVersion = "3.8.16"
changelog {
version = acejumpVersion
path = "${project.projectDir}/CHANGES.md"
header = provider { "[${project.version}] - ${date()}" }
itemPrefix = "-"
unreleasedTerm = "Unreleased"
}
repositories {
mavenCentral()
}
dependencies {
// https://github.com/anyascii/anyascii
implementation("com.anyascii:anyascii:0.3.2")
}
intellij {
version = "2023.2.1"
pluginName = "AceJump"
updateSinceUntilBuild = false
plugins = listOf("java")
}
group = "org.acejump"
version = acejumpVersion