File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ private static Result ensureJacocoConfiguration(String content) {
275275 group = "verification"
276276 description = "Generates Jacoco coverage report for the debug variant"
277277 dependsOn("connectedDebugAndroidTest")
278+ outputs.upToDateWhen { false }
278279
279280 reports {
280281 xml.required = true
@@ -322,6 +323,10 @@ private static Result ensureJacocoConfiguration(String content) {
322323 logger.lifecycle("Jacoco coverage inputs: ${existing}")
323324 }
324325}
326+
327+ tasks.matching { it.name == "connectedDebugAndroidTest" }.configureEach {
328+ outputs.upToDateWhen { false }
329+ }
325330""" .stripTrailing ();
326331
327332 return new Result (ensureTrailingNewline (content ) + "\n " + jacocoBlock + "\n " , true );
You can’t perform that action at this time.
0 commit comments