Browse Source

Add findbugs reports, don't fail the build on them.

Change-Id: I9e52ff2493bf33e8f5e61f027e15505dc407d2cb
Reviewed-on: http://gerrit.dmdirc.com/3944
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
pull/1/head
Chris Smith 9 years ago
parent
commit
954774c65e
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      build.gradle

+ 14
- 0
build.gradle View File

@@ -21,6 +21,7 @@ dependencies {
21 21
 
22 22
 allprojects {
23 23
     apply plugin: 'java'
24
+    apply plugin: 'findbugs'
24 25
     apply plugin: 'pmd'
25 26
 
26 27
     sourceSets {
@@ -61,6 +62,19 @@ allprojects {
61 62
         ruleSets = []
62 63
         ruleSetFiles = files("$rootDir/etc/pmd/full.xml")
63 64
     }
65
+
66
+    tasks.withType(FindBugs) {
67
+        reports {
68
+            html.enabled = true
69
+            xml.enabled = false
70
+        }
71
+    }
72
+
73
+    findbugs {
74
+        reportLevel = 'low'
75
+        effort = 'max'
76
+        ignoreFailures = true
77
+    }
64 78
 }
65 79
 
66 80
 task wrapper(type: Wrapper) {

Loading…
Cancel
Save