-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
115 lines (111 loc) · 3.13 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
group = "cc.moky.intellij.plugin"
version = "1.0.9"
val customSinceBuild = "202"
val customUntilBuild = "300.*"
val customChangeNotes = """
<strong>Changes in version 1.0.9:</strong>
<ul>
<li>Add Mac platform support for plugin.</li>
<li>Update SVGAPlayer version.</li>
</ul>
<strong>Changes in version 1.0.8:</strong>
<ul>
<li>Add SVGA info display (FPS, frames, video size, mem usage, file size, etc).</li>
<li>Add preview background switcher.</li>
<li>Update SVGA version.</li>
<li>Update SWT version to 4.924.</li>
</ul>
<strong>Changes in version 1.0.7:</strong>
<ul>
<li>Fix SVGA file association issue in low idea version.</li>
</ul>
<strong>Changes in version 1.0.6:</strong>
<ul>
<li>Support IDEA 201.*</li>
<li>Add border to canvas background.</li>
</ul>
<strong>Changes in version 1.0.5:</strong>
<ul>
<li>Add grid background to SVGA canvas.</li>
</ul>
<strong>Changes in version 1.0.4:</strong>
<ul>
<li>Fix the tab switch empty page issue in 193.*</li>
<li>Fix the crash issue in 193.*</li>
</ul>
<strong>Changes in version 1.0.3:</strong>
<ul>
<li>Support IDEA 193.*</li>
<li>Update SWT version</li>
<li>Update DJNativeSwing version</li>
</ul>
<strong>Changes in version 1.0.2:</strong>
<ul>
<li>Add SVGA 1.0 support</li>
</ul>
<strong>Changes in version 1.0.1:</strong>
<ul>
<li>Add plugin recommendation</li>
<li>Update scrollbar style</li>
</ul>
<strong>Changes in version 1.0.0:</strong>
<ul>
<li>Created SVGA support plugin for IntelliJ IDEA</li>
</ul>
""".trimIndent()
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.8.10"
id("org.jetbrains.intellij") version "1.12.0"
}
repositories {
mavenCentral()
google()
}
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
// https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version.set("2020.2")
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
patchPluginXml {
sinceBuild.set(customSinceBuild)
untilBuild.set(customUntilBuild)
changeNotes.set(customChangeNotes)
}
buildSearchableOptions {
enabled = false
}
runIde {
autoReloadPlugins.set(true)
}
signPlugin {
certificateChainFile.set(File("chain.crt"))
privateKeyFile.set(File("private.pem"))
val pwd = System.getenv("PRIVATE_KEY_PASSWORD")
if (pwd == null || pwd.isEmpty()) {
System.err.println("PRIVATE_KEY_PASSWORD is empty, please set the PRIVATE_KEY_PASSWORD environment variable!")
} else {
println("PRIVATE_KEY_PASSWORD: $pwd")
}
password.set(pwd)
}
publishPlugin {
val tk = System.getenv("PUBLISH_TOKEN")
if (tk == null || tk.isEmpty()) {
System.err.println("PUBLISH_TOKEN is empty, please set the PUBLISH_TOKEN environment variable!")
} else {
println("PUBLISH_TOKEN: $tk")
}
token.set(tk)
}
}