-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
99 lines (80 loc) · 2.34 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:6.4.0"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.19.0'
classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1"
}
}
apply plugin: 'java'
apply plugin: 'jacoco'
jacoco {
toolVersion = "0.8.5"
}
build.dependsOn jacocoTestReport
check.dependsOn jacocoTestReport
javadoc {
failOnError = false
options.links(
"http://docs.oracle.com/javase/7/docs/api/",
"http://reactivex.io/RxJava/2.x/javadoc",
"http://reactivex.io/RxJava/3.x/javadoc"
)
}
group = "com.github.akarnokd"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
implementation "io.reactivex.rxjava2:rxjava:2.2.21"
implementation "io.reactivex.rxjava3:rxjava:3.1.6"
testImplementation 'junit:junit:4.13.2'
}
apply plugin: 'biz.aQute.bnd.builder'
jar {
bnd ('Bundle-Name': 'rxjava3-bridge',
'Bundle-Vendor': 'akarnokd',
'Bundle-Description': 'Bridge library between RxJava 2 and RxJava 3',
'Import-Package': '!org.junit,!junit.framework,!org.mockito.*,*',
'Bundle-DocURL': 'https://github.com/akarnokd/RxJavaBridge',
'Export-Package': 'hu.akarnokd.rxjava3.bridge',
"Bundle-SymbolicName": "hu.akarnokd.rxjava3.bridge",
)
}
apply plugin: "com.vanniktech.maven.publish"
test {
maxHeapSize = "1g"
testLogging {
events "started", "failed", "standard_error" // "skipped", "passed"
exceptionFormat="full"
// showStandardStreams = true
}
jacoco.includes = ["**akarnokd**"]
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
jacocoTestReport.dependsOn test
apply plugin: "com.github.hierynomus.license"
license {
header rootProject.file('HEADER')
skipExistingHeaders true
ignoreFailures true
excludes(["**/*.md", "**/*.txt"])
}