-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
77 lines (65 loc) · 1.97 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
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.9.24"
id("org.jetbrains.intellij.platform") version "2.1.0"
}
group = "uk.suff"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
intellijPlatform{
defaultRepositories()
intellijDependencies()
}
}
intellijPlatform.pluginVerification.ides{
ide("IU-2024.2.3")
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "21"
targetCompatibility = "21"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "21"
}
patchPluginXml {
// java 21 is required from 242+ so to be able to support latest this is as low as we can go
// todo: look into separate build or module or something for lower versions
sinceBuild.set("242")
untilBuild.set("243.*") // gonna need to update this as versions release
}
runIde {
jvmArgs = listOf(
"-XX:+UnlockDiagnosticVMOptions"
)
}
signPlugin {
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
privateKey.set(System.getenv("PRIVATE_KEY"))
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
}
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}
buildSearchableOptions { enabled = false }
prepareSandbox {
doFirst {
delete(fileTree(defaultDestinationDirectory))
}
}
}
dependencies {
implementation("org.eclipse.jetty:jetty-server:11.0.20")
implementation("org.eclipse.jetty:jetty-servlet:11.0.20")
implementation("org.eclipse.jetty.websocket:websocket-jetty-server:11.0.20")
implementation("org.eclipse.jetty.websocket:websocket-jetty-client:11.0.20")
implementation("org.json:json:20231013")
intellijPlatform {
intellijIdeaUltimate("2024.2.3")
bundledPlugins("JavaScript")
instrumentationTools()
pluginVerifier()
}
}