-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild.gradle
More file actions
31 lines (23 loc) · 1.08 KB
/
build.gradle
File metadata and controls
31 lines (23 loc) · 1.08 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
plugins {
id "java"
}
description = 'SonarQube JaCoCo :: Integration Tests'
dependencies {
testImplementation(platform('org.junit:junit-bom:6.0.3'))
testImplementation('org.junit.jupiter:junit-jupiter')
testImplementation('org.junit.jupiter:junit-jupiter-migrationsupport')
testRuntimeOnly('org.junit.platform:junit-platform-launcher')
testImplementation('org.mockito:mockito-core:5.23.0')
testImplementation('org.assertj:assertj-core:3.10.0')
testImplementation('org.sonarsource.orchestrator:sonar-orchestrator-junit4:6.0.1.3892')
testImplementation('org.sonarsource.sonarqube:sonar-ws:26.3.0.120487')
testImplementation('com.google.code.findbugs:jsr305:3.0.2')
}
sonarqube.skipProject = true
test {
useJUnitPlatform()
systemProperty 'java.awt.headless', 'true'
def orchestratorProps = System.getProperties().findAll { it.key.startsWith("orchestrator") || it.key.startsWith("sonar") }.collect { it.key }
systemProperties System.getProperties().subMap(orchestratorProps)
}
test.onlyIf { project.hasProperty('integrationTests') && project.getProperty('integrationTests') }