forked from ReactiveX/RxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (63 loc) · 1.94 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
buildscript {
repositories { jcenter() }
dependencies { classpath 'com.netflix.nebula:gradle-rxjava-project-plugin:2.+' }
}
description = 'RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.'
apply plugin: 'rxjava-project'
apply plugin: 'java'
apply plugin: 'findbugs'
apply plugin: 'jacoco'
dependencies {
testCompile 'junit:junit-dep:4.10'
testCompile 'org.mockito:mockito-core:1.8.5'
}
////////////////////////////////////////////////////////////////////
// to run findbugs:
// ./gradlew check
// then open build/reports/findbugs/main.html
////////////////////////////////////////////////////////////////////
findbugs {
ignoreFailures = true
toolVersion = "+"
sourceSets = [sourceSets.main]
reportsDir = file("$project.buildDir/reports/findbugs")
effort = "max"
}
//////////////////////////////////////////////////////////////////
// to run jacoco:
// ./gradlew test jacocoTestReport
// to run jacoco on a single test (matches OperatorRetry to OperatorRetryTest in test code base):
// ./gradlew -Dtest.single=OperatorRetry test jacocoTestReport
// then open build/reports/jacoco/index.html
/////////////////////////////////////////////////////////////////
jacoco {
toolVersion = "+"
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/reports/jacoco"
}
}
javadoc {
exclude "**/rx/internal/**"
}
// support for snapshot/final releases with the various branches RxJava uses
nebulaRelease {
addReleaseBranchPattern(/\d+\.\d+\.\d+/)
addReleaseBranchPattern('HEAD')
}
if (project.hasProperty('release.useLastTag')) {
tasks.prepare.enabled = false
}
test{
maxHeapSize = "2g"
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}