-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
93 lines (82 loc) · 2.51 KB
/
build.gradle.kts
File metadata and controls
93 lines (82 loc) · 2.51 KB
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
87
88
89
90
91
92
93
import org.jetbrains.changelog.Changelog
plugins {
id("java")
id("org.jetbrains.intellij.platform") version "2.11.0"
id("org.jetbrains.changelog") version "2.2.0"
kotlin("jvm") version "2.1.20"
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
intellijPlatform {
pluginConfiguration {
id = providers.gradleProperty("pluginId")
name = providers.gradleProperty("pluginName")
version = providers.gradleProperty("pluginVersion")
vendor {
name = providers.gradleProperty("pluginVendorName")
email = providers.gradleProperty("pluginVendorEmail")
}
val changelog = project.changelog
changeNotes = providers.gradleProperty("pluginVersion").map { pluginVersion ->
with(changelog) {
renderItem(
(getOrNull(pluginVersion) ?: getUnreleased())
.withHeader(false)
.withEmptySections(false),
Changelog.OutputType.HTML,
)
}
}
ideaVersion {
sinceBuild = providers.gradleProperty("pluginSinceBuild")
}
}
dependencies {
intellijPlatform {
bundledPlugins(
listOf(
"JavaScript",
"com.intellij",
"com.jetbrains.php",
"com.intellij.css"
)
)
// phpstorm("2025.2")
local(providers.gradleProperty("phpStormPath")) // exception com.intellij.platform.core.nio.fs.MultiRoutingFileSystemProvide
}
implementation("org.json:json:20250107")
implementation(kotlin("stdlib-jdk8"))
testImplementation(kotlin("test"))
testImplementation("io.mockk:mockk:1.14.2")
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21)
}
}
buildPlugin {
dependsOn("test")
}
patchPluginXml {
sinceBuild.set("242")
untilBuild.set("263.*")
}
withType<JavaCompile> {
sourceCompatibility = "21"
targetCompatibility = "21"
}
}
sourceSets {
main {
java.srcDirs("src/main/java", "src/main/kotlin")
}
}
changelog {
version.set(project.version.toString())
}
}