forked from obiwan87/odin-intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
101 lines (82 loc) · 2.34 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
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.8.22"
id("org.jetbrains.intellij.platform") version "2.0.0"
id("io.freefair.lombok") version "8.6"
}
group = "com.lasagnerd"
version = "0.5.2"
repositories {
mavenCentral()
}
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellijPlatform {
buildSearchableOptions = true
instrumentCode = true
projectName = project.name
pluginConfiguration {
version = "0.5.2"
ideaVersion {
sinceBuild = "242"
untilBuild = "242.*"
}
}
publishing {
val tokenFile = File("certificate/token")
if (tokenFile.exists()) {
val myToken = tokenFile.readText()
token.set(myToken)
}
}
signing {
certificateChainFile.set(File("certificate/chain.crt"))
privateKeyFile.set(File("certificate/private.pem"))
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
}
}
val runIdeForUiTests by intellijPlatformTesting.runIde.registering {
task {
jvmArgumentProviders += CommandLineArgumentProvider {
listOf(
"-Drobot-server.port=8082",
"-Dide.mac.message.dialogs.as.sheets=false",
"-Djb.privacy.policy.text=<!--999.999-->",
"-Djb.consents.confirmation.enabled=false",
)
}
}
plugins {
robotServerPlugin()
}
}
sourceSets.main.get().java.srcDirs("src/main/gen")
dependencies {
implementation("org.projectlombok:lombok:1.18.34")
intellijPlatform {
intellijIdeaCommunity("2024.2")
pluginVerifier()
zipSigner()
instrumentationTools()
testFramework(TestFrameworkType.Platform)
testImplementation("junit:junit:4.13.2")
testCompileOnly ("org.junit.jupiter:junit-jupiter-api:5.4.2")
}
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "21"
targetCompatibility = "21"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
}