aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2019-05-31 15:55:56 +0200
committerSonarTech <sonartech@sonarsource.com>2019-06-04 20:21:14 +0200
commite5f2fdce2f293261a0caf0c3f7cdad593174ee8f (patch)
treea61105c5e3f7a97ee944d4d3f0cd3cc6c42e44f9 /build.gradle
parent1002e68f1230b1f024cd2916afd7cf6efcac05ce (diff)
downloadsonarqube-e5f2fdce2f293261a0caf0c3f7cdad593174ee8f.tar.gz
sonarqube-e5f2fdce2f293261a0caf0c3f7cdad593174ee8f.zip
Do not disable recording of code coverage in builds outside of CI
While this adds little overhead, benefit is that remote Gradle cache entry can be used locally.
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle5
1 files changed, 1 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index 5b706509e54..681be67e780 100644
--- a/build.gradle
+++ b/build.gradle
@@ -308,12 +308,9 @@ subprojects {
exceptionFormat 'full' // log the full stack trace (default is the 1st line of the stack trace)
}
jacoco {
- enabled = project.hasProperty('jacocoEnabled')
+ enabled = true // do not disable recording of code coverage, so that remote Gradle cache entry can be used locally
includes = ['com.sonar.*', 'com.sonarsource.*', 'org.sonar.*', 'org.sonarqube.*', 'org.sonarsource.*', 'io.sonarcloud.*']
}
- if (project.hasProperty('jacocoEnabled')) {
- finalizedBy 'jacocoTestReport'
- }
if (project.hasProperty('maxParallelTests')) {
maxParallelForks = project.maxParallelTests as int
}