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
77
88apply plugin : ' rxjava-project'
99apply plugin : ' java'
10+ apply plugin : ' findbugs'
11+ apply plugin : ' jacoco'
1012
1113dependencies {
1214 testCompile ' junit:junit-dep:4.10'
1315 testCompile ' org.mockito:mockito-core:1.8.5'
1416}
1517
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+
1653javadoc {
1754 exclude " **/rx/internal/**"
1855}
@@ -30,3 +67,10 @@ if (project.hasProperty('release.useLastTag')) {
3067test {
3168 maxHeapSize = " 2g"
3269}
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