File: 0003-remove-jacoco-plugin.patch

package info (click to toggle)
pgpainless 1.6.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,472 kB
  • sloc: java: 45,272; xml: 217; sh: 86; makefile: 74; python: 31
file content (64 lines) | stat: -rw-r--r-- 2,055 bytes parent folder | download
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
64
From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jerome@riseup.net>
Date: Wed, 20 Jul 2022 10:36:04 -0400
Subject: remove jacoco plugin

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

Index: pgpainless/build.gradle
===================================================================
--- pgpainless.orig/build.gradle
+++ pgpainless/build.gradle
@@ -20,7 +20,6 @@ allprojects {
     apply plugin: 'java'
     apply plugin: 'idea'
     apply plugin: 'eclipse'
-    apply plugin: 'jacoco'
     apply plugin: 'checkstyle'
 
     compileJava {
@@ -84,19 +83,6 @@ allprojects {
                         'git tag --points-at HEAD'.execute(null, projectDirFile).text.trim())
     }
 
-    jacoco {
-        toolVersion = "0.8.8"
-    }
-
-    jacocoTestReport {
-        dependsOn test
-        sourceDirectories.setFrom(project.files(sourceSets.main.allSource.srcDirs))
-        classDirectories.setFrom(project.files(sourceSets.main.output))
-        reports {
-            xml.enabled true
-        }
-    }
-
     test {
         useJUnitPlatform()
         testLogging {
@@ -205,22 +191,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) {