-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
51 lines (44 loc) · 1.3 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
51 lines (44 loc) · 1.3 KB
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
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "2.0.21"
id("org.jetbrains.intellij.platform") version "2.5.0"
}
group = "com.boksh"
version = providers.gradleProperty("version").getOrElse("1.0.0")
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
intellijPlatform {
intellijIdeaCommunity("2024.3.5")
plugin("PythonCore", "243.24978.46")
}
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
// The IntelliJ platform test initializer on the injected test classpath needs JUnit 4 classes
testRuntimeOnly("junit:junit:4.13.2")
testImplementation(kotlin("stdlib"))
}
kotlin {
jvmToolchain(21)
}
intellijPlatform {
pluginConfiguration {
ideaVersion {
sinceBuild = "242"
// No upper bound: the plugin only uses stable APIs, so keep it compatible with
// newer IDEs (e.g. PyCharm 2026.1, build 261) instead of capping at the build platform.
untilBuild = provider { null }
}
}
buildSearchableOptions = false
publishing {
token = providers.environmentVariable("IDEA_PYTHON_SDK_PLUGIN_UPLOAD_TOKEN")
}
}
tasks.test {
useJUnitPlatform()
}