Skip to content

Commit

Permalink
Merge reactor#2274 into 3.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbottard committed Jul 30, 2020
2 parents d8572ee + 2755965 commit f5b77c7
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 55 deletions.
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
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
29 changes: 12 additions & 17 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,19 @@ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
i=`expr $i + 1`
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi

Expand All @@ -175,14 +175,9 @@ save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
APP_ARGS=`save "$@"`

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
3 changes: 3 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

Expand Down
52 changes: 28 additions & 24 deletions reactor-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,55 +48,59 @@ testSets {

configurations {
compileOnly.extendsFrom jsr166backport
testCompile.extendsFrom jsr166backport
testCompileOnly.extendsFrom jsr166backport
}

dependencies {
// Reactive Streams
compile "org.reactivestreams:reactive-streams:${reactiveStreamsVersion}"
testCompile "org.reactivestreams:reactive-streams-tck:${reactiveStreamsVersion}"
api "org.reactivestreams:reactive-streams:${reactiveStreamsVersion}"
testImplementation "org.reactivestreams:reactive-streams-tck:${reactiveStreamsVersion}"

// JSR-305 annotations
optional "com.google.code.findbugs:jsr305:$jsr305Version"
compileOnly "com.google.code.findbugs:jsr305:$jsr305Version"
testCompileOnly "com.google.code.findbugs:jsr305:$jsr305Version"

//Optional Logging Operator
optional "org.slf4j:slf4j-api:$slf4jVersion"
compileOnly "org.slf4j:slf4j-api:$slf4jVersion"
testCompileOnly "org.slf4j:slf4j-api:$slf4jVersion"

//Optional Metrics
compileOnly "io.micrometer:micrometer-core:$micrometerVersion"

optional "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
// Not putting kotlin-stdlib as implementation to not force it as a transitive lib
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
testImplementation "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"

//Optional BlockHound support
optional "io.projectreactor.tools:blockhound:$blockhoundVersion"
compileOnly "io.projectreactor.tools:blockhound:$blockhoundVersion"
// Also make BlockHound visible in the CP of dedicated testset
blockHoundTestImplementation "io.projectreactor.tools:blockhound:$blockhoundVersion"

//Optional JDK 9 Converter
jsr166backport "io.projectreactor:jsr166:$jsr166BackportVersion"

testImplementation platform("org.junit:junit-bom:${jUnitPlatformVersion}")
testCompile "junit:junit:${jUnitVersion}"
testCompile "org.junit.jupiter:junit-jupiter-api"
testCompile "org.junit.platform:junit-platform-launcher"
testCompile "org.junit.jupiter:junit-jupiter-params"
testRuntime "org.junit.jupiter:junit-jupiter-engine"
testRuntime "org.junit.vintage:junit-vintage-engine"

testRuntime "ch.qos.logback:logback-classic:$logbackVersion"
testImplementation "junit:junit:${jUnitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.platform:junit-platform-launcher"
testImplementation "org.junit.jupiter:junit-jupiter-params"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine"

testRuntimeOnly "ch.qos.logback:logback-classic:$logbackVersion"
// Testing
testCompile(project(":reactor-test")) {
testImplementation(project(":reactor-test")) {
exclude module: 'reactor-core'
}

testCompile "org.assertj:assertj-core:$assertJVersion"
testCompile "org.testng:testng:$testNgVersion"
testCompile "org.mockito:mockito-core:$mockitoVersion"
testCompile "org.openjdk.jol:jol-core:$javaObjectLayoutVersion"
testCompile "pl.pragmatists:JUnitParams:$jUnitParamsVersion"
testCompile "org.awaitility:awaitility:$awaitilityVersion"
testCompile "com.pivovarit:throwing-function:$throwingFunctionVersion"
testCompile "com.tngtech.archunit:archunit:0.12.0"
testImplementation "org.assertj:assertj-core:$assertJVersion"
testImplementation "org.testng:testng:$testNgVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.openjdk.jol:jol-core:$javaObjectLayoutVersion"
testImplementation "pl.pragmatists:JUnitParams:$jUnitParamsVersion"
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
testImplementation "com.pivovarit:throwing-function:$throwingFunctionVersion"
testImplementation "com.tngtech.archunit:archunit:0.12.0"

// withMicrometerTest is a test-set that validates what happens when micrometer *IS*
// on the classpath. Needs sourceSets.test.output because tests there use helpers like AutoDisposingRule etc.
Expand Down
18 changes: 10 additions & 8 deletions reactor-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,22 @@ ext {
}

dependencies {
compile project(":reactor-core")
api project(":reactor-core")

optional "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
// Not putting kotlin-stdlib as implementation to not force it as a transitive lib
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
testImplementation "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"

testImplementation platform("org.junit:junit-bom:${jUnitPlatformVersion}")
testCompile "junit:junit:${jUnitVersion}"
testImplementation "junit:junit:${jUnitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api"
testRuntime "org.junit.jupiter:junit-jupiter-engine"
testRuntime "org.junit.vintage:junit-vintage-engine"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine"

testRuntime "ch.qos.logback:logback-classic:$logbackVersion"
testRuntimeOnly "ch.qos.logback:logback-classic:$logbackVersion"

testCompile "org.assertj:assertj-core:$assertJVersion"
testCompile "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.assertj:assertj-core:$assertJVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
}

task downloadBaseline(type: Download) {
Expand Down
9 changes: 5 additions & 4 deletions reactor-tools/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ plugins {

apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'org.unbroken-dome.test-sets'
apply plugin: 'java-library'

description = 'Reactor Tools'

Expand All @@ -34,7 +35,7 @@ configurations {
}

dependencies {
compile project(':reactor-core')
api project(":reactor-core")

shaded 'net.bytebuddy:byte-buddy-agent:1.10.9'
shaded 'net.bytebuddy:byte-buddy:1.10.9'
Expand All @@ -48,10 +49,10 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api"
testRuntime "org.junit.jupiter:junit-jupiter-engine"

testCompile "org.assertj:assertj-core:$assertJVersion"
testCompile 'cglib:cglib:3.3.0'
testImplementation "org.assertj:assertj-core:$assertJVersion"
testImplementation 'cglib:cglib:3.3.0'

jarFileTestCompile 'org.assertj:assertj-core:3.12.2' //FIXME bump in root and use property
jarFileTestImplementation 'org.assertj:assertj-core:3.12.2' //FIXME bump in root and use property
}

test {
Expand Down
5 changes: 4 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ plugins {

rootProject.name = 'reactor'

include 'benchmarks', 'reactor-core', 'reactor-test', 'reactor-tools'
include 'benchmarks', 'reactor-core', 'reactor-test', 'reactor-tools'

// See https://docs.gradle.org/6.5.1/release-notes.html. Drop once using Gradle 7.0+
enableFeaturePreview("VERSION_ORDERING_V2")

0 comments on commit f5b77c7

Please sign in to comment.