-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
92 lines (78 loc) · 2.38 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
87
88
89
90
91
92
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.tasks.RunIdeTask
plugins {
id("java")
id("org.jetbrains.intellij.platform") version "2.1.0"
kotlin("jvm") version "2.0.21"
}
group = providers.gradleProperty("pluginGroup").get()
version = providers.gradleProperty("pluginVersion").get()
// Set the JVM language level used to build the project.
kotlin {
jvmToolchain(21)
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
intellijPlatform {
intellijIdeaCommunity("2024.3")
bundledPlugin("com.intellij.java")
bundledPlugin("org.jetbrains.kotlin")
pluginVerifier()
zipSigner()
instrumentationTools()
testFramework(TestFrameworkType.Platform)
}
testImplementation("junit:junit:4.13.2")
}
intellijPlatform {
pluginConfiguration {
version = providers.gradleProperty("pluginVersion")
name = "Fenix Buddy"
description = """
Helps developers work efficiently with <a href="https://blinkfox.github.io/fenix/">fenix</a>.
<h2>Fenix Buddy delivers:</h2>
<ul>
<li>java/kotlin @QueryFenix annotation jumps to xml node</li>
<li>xml node jumps to Java/kotlin @QueryFenix annotation</li>
</ul>
""".trimIndent()
changeNotes = """
<h2>新的:</h2>
<ul>
<li>support k2 mode</li>
</ul>
""".trimIndent()
ideaVersion {
sinceBuild = providers.gradleProperty("pluginSinceBuild")
untilBuild = providers.gradleProperty("pluginUntilBuild")
}
}
signing {
certificateChainFile = file("/Users/hansai/Documents/fenix-buddy/chain.crt")
privateKeyFile = file("/Users/hansai/Documents/fenix-buddy/private.pem")
password = providers.environmentVariable("PRIVATE_KEY_PASSWORD")
}
publishing {
token = providers.environmentVariable("PUBLISH_TOKEN")
}
pluginVerification {
ides {
recommended()
}
}
}
tasks.named<RunIdeTask>("runIde") {
jvmArgumentProviders += CommandLineArgumentProvider {
listOf("-Didea.kotlin.plugin.use.k2=true")
}
}
tasks.test {
jvmArgumentProviders += CommandLineArgumentProvider {
listOf("-Didea.kotlin.plugin.use.k2=true")
}
}