Skip to content

3.x: Upgrade Gradle & dependency versions #6632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 38 additions & 34 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
buildscript {

// Dependency versions
// ---------------------------------------

ext.reactiveStreamsVersion = "1.0.3-RC1"
ext.junitVersion = "4.12"
ext.testNgVersion = "7.0.0"
ext.mockitoVersion = "3.0.0"
ext.jmhLibVersion = "1.21"
ext.jmhGradleVersion = "0.5.0-rc-2"
ext.guavaVersion = "28.0-jre"
ext.jacocoVersion = "0.8.4"
ext.animalSnifferVersion = "1.5.0"
ext.licenseVersion = "0.15.0"
ext.bintrayVersion = "1.7.3"
ext.jfrogExtractorVersion = "4.5.2"
ext.bndVersion = "4.2.0"
ext.checkstyleVersion = "6.19"

// --------------------------------------

repositories {
jcenter()
mavenCentral()
Expand All @@ -7,11 +28,12 @@ buildscript {
}
}
dependencies {
classpath "ru.vyarus:gradle-animalsniffer-plugin:1.2.0"
classpath "gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.13.1"
classpath "me.champeau.gradle:jmh-gradle-plugin:0.4.5"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3"
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.5.2"
classpath "ru.vyarus:gradle-animalsniffer-plugin:$animalSnifferVersion"
classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:$licenseVersion"
classpath "me.champeau.gradle:jmh-gradle-plugin:$jmhGradleVersion"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintrayVersion"
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:$jfrogExtractorVersion"
classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:$bndVersion"
}
}

Expand All @@ -38,7 +60,6 @@ apply plugin: "checkstyle"
apply plugin: "jacoco"
apply plugin: "ru.vyarus.animalsniffer"
apply plugin: "maven"
apply plugin: "osgi"
apply plugin: "me.champeau.gradle.jmh"
apply plugin: "com.github.hierynomus.license"
apply plugin: "com.jfrog.bintray"
Expand All @@ -48,18 +69,6 @@ apply plugin: "eclipse"
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6

// Dependency versions
// ---------------------------------------

def junitVersion = "4.12"
def reactiveStreamsVersion = "1.0.3-RC1"
def mockitoVersion = "2.1.0"
def jmhLibVersion = "1.20"
def testNgVersion = "6.11"
def guavaVersion = "24.0-jre"
def jacocoVersion = "0.8.0"
// --------------------------------------

repositories {
mavenCentral()
}
Expand Down Expand Up @@ -124,15 +133,17 @@ artifacts {
archives javadocJar
}

apply plugin: 'biz.aQute.bnd.builder'

jar {
manifest {
name = "rxjava"
instruction "Bundle-Vendor", "RxJava Contributors"
instruction "Bundle-DocURL", "https://github.com/ReactiveX/RxJava"
instruction "Import-Package", "!org.junit,!junit.framework,!org.mockito.*,!org.testng.*,*"
instruction "Eclipse-ExtensibleAPI", "true"
instruction "Automatic-Module-Name", "io.reactivex.rxjava3"
}
bnd ('Bundle-Name': 'rxjava',
'Bundle-Vendor': 'RxJava Contributors',
'Bundle-Description': 'Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.',
'Import-Package': '!org.junit,!junit.framework,!org.mockito.*,!org.testng.*,*',
'Bundle-DocURL': 'https://github.com/ReactiveX/RxJava',
'Eclipse-ExtensibleAPI': 'true',
'Automatic-Module-Name': 'io.reactivex.rxjava3'
)
}

license {
Expand Down Expand Up @@ -289,13 +300,6 @@ jacocoTestReport {
xml.enabled = true
html.enabled = true
}

afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ["io/reactivex/tck/**"])
})
}
}

jacocoTestReport.dependsOn GCandMem
Expand All @@ -305,7 +309,7 @@ build.dependsOn jacocoTestReport
checkstyle {
configFile file("checkstyle.xml")
ignoreFailures = true
toolVersion ="6.19"
toolVersion = checkstyleVersion
}

if (rootProject.hasProperty("releaseMode")) {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public void onNext(Integer t) {
}

final class IncrementingIterable implements Iterable<Integer> {
private final class IncrementingIterator implements Iterator<Integer> {

final class IncrementingIterator implements Iterator<Integer> {
int i;

@Override
Expand All @@ -64,9 +65,9 @@ public void remove() {
}
}

private final int size;
final int size;

private IncrementingIterable(int size) {
IncrementingIterable(int size) {
this.size = size;
}

Expand All @@ -77,7 +78,8 @@ public Iterator<Integer> iterator() {
}

final class IncrementingPublisher implements Publisher<Integer> {
private final int size;

final int size;

IncrementingPublisher(int size) {
this.size = size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import org.junit.*;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.junit.MockitoJUnitRunner;

import io.reactivex.rxjava3.core.RxJavaTest;
import io.reactivex.rxjava3.internal.disposables.SequentialDisposable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import org.junit.*;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import org.mockito.junit.MockitoJUnitRunner;

import io.reactivex.rxjava3.core.RxJavaTest;
import io.reactivex.rxjava3.internal.disposables.DisposableHelper;
Expand Down