diff --git a/build.gradle b/build.gradle
index 46307076e..386f5390b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -56,16 +56,6 @@ allprojects {
 
   jacoco {
     toolVersion = '0.8.11'
-    if (project.tasks.findByName('integrationTest')) {
-      applyTo integrationTest
-    }
-    if (project.tasks.findByName('acceptanceTest')) {
-      applyTo acceptanceTest
-    }
-  }
-
-  jacocoTestReport {
-    dependsOn test
   }
 
   tasks.withType(Test).configureEach {
@@ -116,6 +106,13 @@ allprojects {
         }
       }
     }
+
+    project.tasks.jacocoTestReport {
+      if (project.tasks.findByName('integrationTest')) {
+        executionData(tasks.named("integrationTest").get())
+        sourceSets(sourceSets["integrationTest"])
+      }
+    }
   }
 }