Browse Source

Add findbugs.

Change-Id: If96ce40a9e3afaf07858eec6ee17fc384715d240
Reviewed-on: http://gerrit.dmdirc.com/3947
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
changes/47/3947/2
Chris Smith 9 years ago
parent
commit
67e737c9b4
3 changed files with 16 additions and 2 deletions
  1. 14
    0
      build.gradle
  2. BIN
      gradle/wrapper/gradle-wrapper.jar
  3. 2
    2
      gradle/wrapper/gradle-wrapper.properties

+ 14
- 0
build.gradle View File

@@ -4,6 +4,7 @@ import org.mdonoughe.JGitDescribeTask
4 4
 
5 5
 subprojects {
6 6
     apply plugin: 'java'
7
+    apply plugin: 'findbugs'
7 8
     apply plugin: 'pmd'
8 9
 
9 10
     configurations {
@@ -79,6 +80,19 @@ subprojects {
79 80
         ruleSetFiles = files("$rootDir/etc/pmd/full.xml")
80 81
     }
81 82
 
83
+    tasks.withType(FindBugs) {
84
+        reports {
85
+            html.enabled = true
86
+            xml.enabled = false
87
+        }
88
+    }
89
+
90
+    findbugs {
91
+        reportLevel = 'low'
92
+        effort = 'max'
93
+        ignoreFailures = true
94
+    }
95
+
82 96
     jar {
83 97
         from("$buildDir/plugin.config") {
84 98
             into 'META-INF'

BIN
gradle/wrapper/gradle-wrapper.jar View File


+ 2
- 2
gradle/wrapper/gradle-wrapper.properties View File

@@ -1,6 +1,6 @@
1
-#Sun Sep 14 12:37:42 BST 2014
1
+#Tue Sep 16 15:02:24 BST 2014
2 2
 distributionBase=GRADLE_USER_HOME
3 3
 distributionPath=wrapper/dists
4 4
 zipStoreBase=GRADLE_USER_HOME
5 5
 zipStorePath=wrapper/dists
6
-distributionUrl=http\://services.gradle.org/distributions/gradle-2.1-bin.zip
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-bin.zip

Loading…
Cancel
Save