File tree 1 file changed +23
-8
lines changed
1 file changed +23
-8
lines changed Original file line number Diff line number Diff line change 1
1
buildscript {
2
- repositories {
3
- jcenter()
2
+ repositories {
3
+ jcenter()
4
4
}
5
- dependencies {
5
+ dependencies {
6
6
classpath ' com.netflix.nebula:gradle-rxjava-project-plugin:4.0.0'
7
- classpath ' ru.vyarus:gradle-animalsniffer-plugin:1.1.0'
7
+ classpath ' ru.vyarus:gradle-animalsniffer-plugin:1.1.0'
8
8
}
9
9
}
10
10
11
11
description = ' RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.'
12
12
13
13
apply plugin : ' java'
14
14
apply plugin : ' pmd'
15
+ apply plugin : ' findbugs'
15
16
apply plugin : ' jacoco'
16
17
apply plugin : ' ru.vyarus.animalsniffer'
17
18
apply plugin : ' nebula.rxjava-project'
@@ -98,15 +99,15 @@ pmdMain {
98
99
task pmdPrint (dependsOn : ' pmdMain' ) << {
99
100
File file = new File (' build/reports/pmd/main.xml' )
100
101
if (file. exists()) {
101
-
102
+
102
103
println (" Listing first 100 PMD violations" )
103
-
104
+
104
105
file. eachLine { line , count ->
105
106
if (count <= 100 ) {
106
107
println (line)
107
108
}
108
109
}
109
-
110
+
110
111
} else {
111
112
println (" PMD file not found." )
112
113
}
@@ -116,4 +117,18 @@ build.dependsOn pmdPrint
116
117
117
118
animalsniffer {
118
119
annotation = ' rx.internal.util.SuppressAnimalSniffer'
119
- }
120
+ }
121
+
122
+ findbugs {
123
+ ignoreFailures true
124
+ toolVersion = ' 3.0.1'
125
+ effort = ' max'
126
+ reportLevel = ' low'
127
+ }
128
+
129
+ findbugsMain {
130
+ reports {
131
+ html. enabled = false // Findbugs can only have on report enabled
132
+ xml. enabled = true
133
+ }
134
+ }
You can’t perform that action at this time.
0 commit comments