From ecbddddd51b25b908d4ad8e39cefc375b119f142 Mon Sep 17 00:00:00 2001 From: Cristian Garcia Date: Tue, 17 Nov 2020 09:50:44 +0100 Subject: [PATCH] Fix CoverageFileName fixes #135 This issue is making builds using the Gradle BuildCache to report 0% coverage. Gradle caches the .xml file that doesn't exist from the compile task and then the report task doesn't see anything, now it will cache the right file fixing the builds. --- src/main/groovy/org/scoverage/ScoveragePlugin.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/org/scoverage/ScoveragePlugin.groovy b/src/main/groovy/org/scoverage/ScoveragePlugin.groovy index ab5f4d2..aa21566 100644 --- a/src/main/groovy/org/scoverage/ScoveragePlugin.groovy +++ b/src/main/groovy/org/scoverage/ScoveragePlugin.groovy @@ -191,7 +191,7 @@ class ScoveragePlugin implements Plugin { } scalaCompileOptions.additionalParameters = parameters // the compile task creates a store of measured statements - outputs.file(new File(extension.dataDir.get(), 'scoverage.coverage.xml')) + outputs.file(new File(extension.dataDir.get(), 'scoverage.coverage')) dependsOn project.configurations[CONFIGURATION_NAME] doFirst {