-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
141 lines (117 loc) · 3.98 KB
/
build.gradle
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
plugins {
id 'io.freefair.lombok' version '8.6'
id 'org.jetbrains.intellij' version '1.17.4'
id 'java'
id 'jacoco'
}
group 'com.checkmarx'
version System.getenv('RELEASE_VERSION') ?: "dev"
def javaWrapperVersion = System.getenv('JAVA_WRAPPER_VERSION')
def remoteRobotVersion = '0.11.23'
repositories {
mavenCentral()
maven {
url = 'https://packages.jetbrains.team/maven/p/ij/intellij-dependencies'
}
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
jacoco {
toolVersion = "0.8.12"
}
dependencies {
testImplementation 'com.intellij.remoterobot:remote-robot:' + remoteRobotVersion
testImplementation('com.intellij.remoterobot:remote-fixtures:' + remoteRobotVersion) {
exclude group: 'com.square.okio', module: 'okio'
}
testImplementation 'com.squareup.okio:okio:3.8.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
testImplementation 'junit:junit:4.11-redhat-1'
testImplementation 'junit:junit:4.13.1'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.15.2'
// Video Recording
testImplementation('com.automation-remarks:video-recorder-junit5:2.0') {
exclude group: 'log4j', module: 'log4j'
}
testImplementation 'org.apache.logging.log4j:log4j-api:2.23.1'
testImplementation 'org.apache.logging.log4j:log4j-core:2.23.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
// https://mvnrepository.com/artifact/com.miglayout/miglayout-swing
implementation 'com.miglayout:miglayout-swing:11.3'
if (javaWrapperVersion == "" || javaWrapperVersion == null) {
implementation('com.checkmarx.ast:ast-cli-java-wrapper:2.1.8'){
exclude group: 'junit', module: 'junit'
}
} else {
implementation('com.checkmarx.ast:ast-cli-java-wrapper:' + javaWrapperVersion){
exclude group: 'junit', module: 'junit'
}
}
implementation(platform("com.fasterxml.jackson:jackson-bom:2.16.1"))
// Temporary workaround https://github.com/FasterXML/jackson-databind/issues/3428
testImplementation 'org.mockito:mockito-core:5.0.0'
testImplementation 'org.mockito:mockito-junit-jupiter:5.0.0' // maybe remove
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = '2022.2.1'
updateSinceUntilBuild = false
}
runPluginVerifier {
ideVersions = ['IC-2023.1', 'IC-2023.2', 'IC-2023.3', 'IC-2024.1']
}
downloadRobotServerPlugin {
version = remoteRobotVersion
}
test {
useJUnitPlatform()
systemProperty 'uiWaitDuration', project.findProperty('uiWaitDuration') ?: 300
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
showExceptions true
showCauses true
showStackTraces true
showStandardStreams = true
}
jacoco {
includeNoLocationClasses = true
excludes = ["jdk.internal.*"]
}
}
runIdeForUiTests {
systemProperty 'jb.privacy.policy.text', '<!--999.999-->'
systemProperty 'jb.consents.confirmation.enabled', 'false'
}
def jacocoTask = project.hasProperty('jacocoTask') ? project.jacocoTask : "unit"
jacocoTestReport {
dependsOn test
classDirectories.setFrom(instrumentCode)
if (jacocoTask == "integration") {
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, include: 'com/checkmarx/intellij/commands/**',
exclude: 'com/checkmarx/intellij/commands/results/obj')
}))
}
}
reports {
csv.required = true
html.required = true
}
}
publishPlugin {
token.set System.getenv("PUBLISH_TOKEN")
if (project.hasProperty("rchannels")) {
channels = [rchannels.toString()]
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
patchPluginXml {
sinceBuild = '222'
}