-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
61 lines (52 loc) · 1.47 KB
/
Copy pathbuild.gradle
File metadata and controls
61 lines (52 loc) · 1.47 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
52
53
54
55
56
57
58
59
60
61
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
plugins {
id "org.jetbrains.intellij.platform" version "2.7.2"
id "org.jetbrains.kotlin.jvm" version "2.1.20"
id "java"
}
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
// To find available IDE versions see https://www.jetbrains.com/intellij-repository/releases
// and https://www.jetbrains.com/intellij-repository/snapshots
ext.ideVersion = "2025.2"
sourceSets {
main {
kotlin { srcDir "src" }
resources { srcDir "resources" }
}
test {
kotlin { srcDir "test" }
}
}
kotlin {
jvmToolchain(17)
}
dependencies {
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.mockito:mockito-core:5.6.0'
intellijPlatform {
intellijIdeaCommunity(ideVersion, false)
bundledPlugin "Git4Idea"
testFramework TestFrameworkType.Platform.INSTANCE
}
testImplementation "org.jetbrains.kotlin:kotlin-test:2.1.20"
}
intellijPlatform {
projectName = "LimitedWIP"
buildSearchableOptions = false // Disable because it takes a long time and the plugin doesn't need it
pluginConfiguration {
ideaVersion {
untilBuild = provider { null } // Disable patching plugin.xml because "until" version is too restrictive (it's better to keep it open-ended)
}
}
}
tasks {
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
hidden.set(true)
}
}