File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,49 @@ description = 'RxJava: Reactive Extensions for the JVM – a library for composi
7
7
8
8
apply plugin : ' rxjava-project'
9
9
apply plugin : ' java'
10
+ apply plugin : ' findbugs'
11
+ apply plugin : ' jacoco'
10
12
11
13
dependencies {
12
14
testCompile ' junit:junit-dep:4.10'
13
15
testCompile ' org.mockito:mockito-core:1.8.5'
14
16
}
15
17
18
+ // //////////////////////////////////////////////////////////////////
19
+ // to run findbugs:
20
+ // ./gradlew check
21
+ // then open build/reports/findbugs/main.html
22
+ // //////////////////////////////////////////////////////////////////
23
+
24
+ findbugs {
25
+ ignoreFailures = true
26
+ toolVersion = " +"
27
+ sourceSets = [sourceSets. main]
28
+ reportsDir = file(" $project . buildDir /reports/findbugs" )
29
+ effort = " max"
30
+ }
31
+
32
+ // ////////////////////////////////////////////////////////////////
33
+ // to run jacoco:
34
+ // ./gradlew test jacocoTestReport
35
+ // to run jacoco on a single test (matches OperatorRetry to OperatorRetryTest in test code base):
36
+ // ./gradlew -Dtest.single=OperatorRetry test jacocoTestReport
37
+ // then open build/reports/jacoco/index.html
38
+ // ///////////////////////////////////////////////////////////////
39
+
40
+ jacoco {
41
+ toolVersion = " +"
42
+ reportsDir = file(" $buildDir /customJacocoReportDir" )
43
+ }
44
+
45
+ jacocoTestReport {
46
+ reports {
47
+ xml. enabled false
48
+ csv. enabled false
49
+ html. destination " ${ buildDir} /reports/jacoco"
50
+ }
51
+ }
52
+
16
53
javadoc {
17
54
exclude " **/rx/internal/**"
18
55
}
@@ -30,3 +67,10 @@ if (project.hasProperty('release.useLastTag')) {
30
67
test {
31
68
maxHeapSize = " 2g"
32
69
}
70
+
71
+ tasks. withType(FindBugs ) {
72
+ reports {
73
+ xml. enabled = false
74
+ html. enabled = true
75
+ }
76
+ }
You can’t perform that action at this time.
0 commit comments