-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
63 lines (55 loc) · 1.35 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
import org.jetbrains.intellij.tasks.PatchPluginXmlTask
import org.jetbrains.intellij.tasks.PublishPluginTask
plugins {
id("org.jetbrains.intellij") version "1.15.0"
}
repositories {
mavenCentral()
maven("https://dl.bintray.com/jetbrains/intellij-plugin-service")
}
allprojects {
version = "0.13"
apply {
plugin("java")
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
sourceSets {
main {
java.srcDirs("main/src")
resources.srcDirs("main/resources")
}
test {
java.srcDir("tests/src")
resources.srcDirs("tests/testData")
}
}
apply {
plugin("org.jetbrains.intellij")
}
intellij {
pluginName.set("dg-test-helper")
type.set("IC")
localPath.set(project.properties["local.idea"] as String?)
plugins.set(listOf("java", "DatabaseTools"))
}
tasks {
withType<PatchPluginXmlTask> {
sinceBuild.set("233")
untilBuild.set("993")
}
withType<PublishPluginTask> {
// username.set(project.properties["publish.user"])
token.set(project.properties["publish.token"] as String?)
channels.set(listOf(project.properties["publish.channel"] as String? ?: "Stable"))
}
runIde {
maxHeapSize = "2g"
}
buildSearchableOptions {
enabled = false
}
}
}