-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
82 lines (67 loc) · 1.99 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
82 lines (67 loc) · 1.99 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
plugins {
id("saros.gradle.intellij.plugin")
}
val versionQualifier: String? = ext.get("versionQualifier") as String?
val intellijHome: String? = ext.get("intellijHome") as String?
val intellijSandboxDir: String? = ext.get("intellijSandboxDir") as String?
val commonsIo = ext.get("commons-io2") as String
val commonsLang = ext.get("commons-lang3") as String
configurations {
val testConfig by getting {}
val testCompile by getting {
extendsFrom(testConfig)
}
}
dependencies {
compile(project(path = ":saros.core", configuration = "plain"))
implementation(commonsIo)
implementation(commonsLang)
compile("org.easytesting:fest-assert:1.2")
compile("org.easytesting:fest-reflect:1.2")
compile("org.easytesting:fest-swing:1.2.1")
compile("org.easytesting:fest-util:1.1.3")
testCompile(project(path = ":saros.core", configuration = "testing"))
}
sourceSets {
main {
java.srcDirs("src")
resources.srcDirs("resources", "src")
resources.exclude("**/*.java")
}
test {
java.srcDirs("test/junit")
}
}
sarosIntellij {
sandboxBaseDir = if (intellijSandboxDir.isNullOrBlank()) null else file(intellijSandboxDir!!)
localIntellijHome = if (intellijHome.isNullOrBlank()) null else file(intellijHome!!)
intellijVersion = "IC-2020.1.3"
}
tasks {
jar {
manifest {
attributes(mutableMapOf(
"Created-By" to "IntelliJ IDEA",
"Manifest-Version" to "1.0"
))
}
version = ""
from(sourceSets["main"].output)
from(rootProject.file("saros_log4j2.xml"))
from(rootProject.file("log4j2.xml"))
}
intellij {
pluginName = "saros-intellij"
}
runIde {
// set heap size for the test JVM(s)
minHeapSize = "128m"
maxHeapSize = "2048m"
jvmArgs("-Dsaros.debug=true")
}
intellij {
patchPluginXml {
setVersion("0.3.0$versionQualifier")
}
}
}