1
1
buildscript {
2
+
3
+ // Dependency versions
4
+ // ---------------------------------------
5
+
6
+ ext. reactiveStreamsVersion = " 1.0.3-RC1"
7
+ ext. junitVersion = " 4.12"
8
+ ext. testNgVersion = " 7.0.0"
9
+ ext. mockitoVersion = " 3.0.0"
10
+ ext. jmhLibVersion = " 1.21"
11
+ ext. jmhGradleVersion = " 0.5.0-rc-2"
12
+ ext. guavaVersion = " 28.0-jre"
13
+ ext. jacocoVersion = " 0.8.4"
14
+ ext. animalSnifferVersion = " 1.5.0"
15
+ ext. licenseVersion = " 0.15.0"
16
+ ext. bintrayVersion = " 1.7.3"
17
+ ext. jfrogExtractorVersion = " 4.5.2"
18
+ ext. bndVersion = " 4.2.0"
19
+ ext. checkstyleVersion = " 6.19"
20
+
21
+ // --------------------------------------
22
+
2
23
repositories {
3
24
jcenter()
4
25
mavenCentral()
@@ -7,11 +28,12 @@ buildscript {
7
28
}
8
29
}
9
30
dependencies {
10
- classpath " ru.vyarus:gradle-animalsniffer-plugin:1.2.0"
11
- classpath " gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.13.1"
12
- classpath " me.champeau.gradle:jmh-gradle-plugin:0.4.5"
13
- classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3"
14
- classpath " org.jfrog.buildinfo:build-info-extractor-gradle:4.5.2"
31
+ classpath " ru.vyarus:gradle-animalsniffer-plugin:$animalSnifferVersion "
32
+ classpath " gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:$licenseVersion "
33
+ classpath " me.champeau.gradle:jmh-gradle-plugin:$jmhGradleVersion "
34
+ classpath " com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintrayVersion "
35
+ classpath " org.jfrog.buildinfo:build-info-extractor-gradle:$jfrogExtractorVersion "
36
+ classpath " biz.aQute.bnd:biz.aQute.bnd.gradle:$bndVersion "
15
37
}
16
38
}
17
39
@@ -38,7 +60,6 @@ apply plugin: "checkstyle"
38
60
apply plugin : " jacoco"
39
61
apply plugin : " ru.vyarus.animalsniffer"
40
62
apply plugin : " maven"
41
- apply plugin : " osgi"
42
63
apply plugin : " me.champeau.gradle.jmh"
43
64
apply plugin : " com.github.hierynomus.license"
44
65
apply plugin : " com.jfrog.bintray"
@@ -48,18 +69,6 @@ apply plugin: "eclipse"
48
69
sourceCompatibility = JavaVersion . VERSION_1_6
49
70
targetCompatibility = JavaVersion . VERSION_1_6
50
71
51
- // Dependency versions
52
- // ---------------------------------------
53
-
54
- def junitVersion = " 4.12"
55
- def reactiveStreamsVersion = " 1.0.3-RC1"
56
- def mockitoVersion = " 2.1.0"
57
- def jmhLibVersion = " 1.20"
58
- def testNgVersion = " 6.11"
59
- def guavaVersion = " 24.0-jre"
60
- def jacocoVersion = " 0.8.0"
61
- // --------------------------------------
62
-
63
72
repositories {
64
73
mavenCentral()
65
74
}
@@ -124,15 +133,17 @@ artifacts {
124
133
archives javadocJar
125
134
}
126
135
136
+ apply plugin : ' biz.aQute.bnd.builder'
137
+
127
138
jar {
128
- manifest {
129
- name = " rxjava "
130
- instruction " Bundle-Vendor " , " RxJava Contributors "
131
- instruction " Bundle-DocURL " , " https://github.com/ReactiveX/RxJava "
132
- instruction " Import-Package " , " !org.junit,!junit.framework,!org.mockito.*,!org.testng.*,* "
133
- instruction " Eclipse-ExtensibleAPI" , " true"
134
- instruction " Automatic-Module-Name" , " io.reactivex.rxjava3"
135
- }
139
+ bnd ( ' Bundle-Name ' : ' rxjava ' ,
140
+ ' Bundle-Vendor ' : ' RxJava Contributors ' ,
141
+ ' Bundle-Description ' : ' Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM. ' ,
142
+ ' Import-Package ' : ' !org.junit,!junit.framework,!org.mockito.*,!org.testng.*,* ' ,
143
+ ' Bundle-DocURL ' : ' https://github.com/ReactiveX/RxJava ' ,
144
+ ' Eclipse-ExtensibleAPI' : ' true' ,
145
+ ' Automatic-Module-Name' : ' io.reactivex.rxjava3'
146
+ )
136
147
}
137
148
138
149
license {
@@ -289,13 +300,6 @@ jacocoTestReport {
289
300
xml. enabled = true
290
301
html. enabled = true
291
302
}
292
-
293
- afterEvaluate {
294
- classDirectories = files(classDirectories. files. collect {
295
- fileTree(dir : it,
296
- exclude : [" io/reactivex/tck/**" ])
297
- })
298
- }
299
303
}
300
304
301
305
jacocoTestReport. dependsOn GCandMem
@@ -305,7 +309,7 @@ build.dependsOn jacocoTestReport
305
309
checkstyle {
306
310
configFile file(" checkstyle.xml" )
307
311
ignoreFailures = true
308
- toolVersion = " 6.19 "
312
+ toolVersion = checkstyleVersion
309
313
}
310
314
311
315
if (rootProject. hasProperty(" releaseMode" )) {
0 commit comments