-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (49 loc) · 1.31 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id("org.jetbrains.kotlin.jvm") version "2.0.20"
id("org.jetbrains.intellij.platform") version "2.1.0"
id("org.jlleitschuh.gradle.ktlint") version "12.1.2"
}
group = "com.kebastos.kulibin"
version = project.findProperty("version")?.toString() ?: "0.0.0"
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
gradlePluginPortal()
}
}
dependencies {
intellijPlatform {
// local("C:\\Program Files\\JetBrains\\JetBrains Rider 2024.2.5")
rider("2024.2.5")
instrumentationTools()
}
}
tasks {
compileJava {
options.release.set(17)
}
compileKotlin {
compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
}
compileTestJava {
options.release.set(17)
}
compileTestKotlin {
compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
}
patchPluginXml {
version = project.version.toString()
sinceBuild.set("223")
untilBuild.set("243.*")
}
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"))
}
}