File: 0003-remove-jacoco-plugin.patch

package info (click to toggle)
sop-java 7.0.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,524 kB
  • sloc: java: 8,357; xml: 170; sh: 98; makefile: 32
file content (63 lines) | stat: -rw-r--r-- 2,047 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jerome@riseup.net>
Date: Sat, 23 Jul 2022 14:50:30 -0400
Subject: remove jacoco plugin

Forwarded: not-needed
---
 build.gradle | 29 -----------------------------
 1 file changed, 29 deletions(-)

Index: sop-java/build.gradle
===================================================================
--- sop-java.orig/build.gradle
+++ sop-java/build.gradle
@@ -20,7 +20,6 @@ allprojects {
     apply plugin: 'java'
     apply plugin: 'idea'
     apply plugin: 'eclipse'
-    apply plugin: 'jacoco'
     apply plugin: 'checkstyle'
 
     // Only generate jar for submodules
@@ -74,18 +73,6 @@ allprojects {
                         'git tag --points-at HEAD'.execute(null, projectDirFile).text.trim())
     }
 
-    jacoco {
-        toolVersion = "0.8.7"
-    }
-
-    jacocoTestReport {
-        dependsOn test
-        sourceDirectories.setFrom(project.files(sourceSets.main.allSource.srcDirs))
-        classDirectories.setFrom(project.files(sourceSets.main.output))
-        reports {
-            xml.enabled true
-        }
-    }
 
     test {
         useJUnitPlatform()
@@ -195,22 +182,6 @@ def getGitCommit() {
     gitCommit
 }
 
-task jacocoRootReport(type: JacocoReport) {
-    dependsOn = subprojects.jacocoTestReport
-    sourceDirectories.setFrom(files(subprojects.sourceSets.main.allSource.srcDirs))
-    classDirectories.setFrom(files(subprojects.sourceSets.main.output))
-    executionData.setFrom(files(subprojects.jacocoTestReport.executionData))
-    reports {
-        xml.enabled true
-        xml.destination file("${buildDir}/reports/jacoco/test/jacocoTestReport.xml")
-    }
-    // We could remove the following setOnlyIf line, but then
-    // jacocoRootReport would silently be SKIPPED if something with
-    // the projectsWithUnitTests is wrong (e.g. a project is missing
-    // in there).
-    setOnlyIf { true }
-}
-
 task javadocAll(type: Javadoc) {
     def currentJavaVersion = JavaVersion.current()
     if (currentJavaVersion.compareTo(JavaVersion.VERSION_1_9) >= 0) {