Repository: tapestry-5
Updated Branches:
  refs/heads/master 4d3fed8f4 -> 61018fcb5


TAP5-2451: create a combined report of all subprojects


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/61018fcb
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/61018fcb
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/61018fcb

Branch: refs/heads/master
Commit: 61018fcb537219d626496c81c1d4e12a58ee5b53
Parents: 4d3fed8
Author: Jochen Kemnade <[email protected]>
Authored: Fri Feb 20 15:40:17 2015 +0100
Committer: Jochen Kemnade <[email protected]>
Committed: Fri Feb 20 15:40:17 2015 +0100

----------------------------------------------------------------------
 build.gradle | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/61018fcb/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 38fb6c6..012aa96 100755
--- a/build.gradle
+++ b/build.gradle
@@ -397,8 +397,33 @@ dependencies {
     meta aggregateJavadoc.outputs.files
 }
 
+task combinedJacocoReport(type:JacocoReport){
+  dependsOn = subprojects.test
+  additionalSourceDirs = files(subprojects.sourceSets.main.allSource.srcDirs)
+  sourceDirectories = files(subprojects.sourceSets.main.allSource.srcDirs)
+  classDirectories = files(subprojects.sourceSets.main.output)
+  executionData = files(subprojects.jacocoTestReport.executionData)
+  jacocoClasspath = files(subprojects.jacocoTestReport.jacocoClasspath)
+  reports {
+      html {
+        enabled = true
+        destination = "$buildDir/reports/jacoco"
+      }
+      xml.enabled = false
+      csv.enabled = false
+  }
+  onlyIf = {
+      true
+  }
+  doFirst {
+      executionData = files(executionData.findAll {
+          it.exists()
+      })
+  }
+}
+
 task continuousIntegration {
-    dependsOn subprojects.build, aggregateJavadoc, subprojects.jacocoTestReport
+    dependsOn subprojects.build, aggregateJavadoc, combinedJacocoReport
     description "Task executed on Jenkins CI server after SVN commits"
 }
 

Reply via email to