Skip to content

Commit 0578418

Browse files
garyrussellartembilan
authored andcommitted
Upgrade to Gradle 4.6
- add support for JUnit5 tests - resume gradle testing of `RabbitTemplateMPPIntegrationTests`, `SimpleMessageListenerContainerLongTests` * Polishing
1 parent 493aa4e commit 0578418

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ subprojects { subproject ->
8989
hamcrestVersion = '1.3'
9090
jackson2Version = '2.9.1'
9191
junit4Version = '4.12'
92-
junitJupiterVersion = '5.0.2'
93-
junitPlatformVersion = '1.0.2'
94-
junitVintageVersion = '4.12.2'
92+
junitJupiterVersion = '5.1.0'
93+
junitPlatformVersion = '1.1.0'
94+
junitVintageVersion = '5.1.0'
9595
log4jVersion = '2.8.2'
9696
logbackVersion = '1.2.3'
9797
mockitoVersion = '2.11.0'
@@ -128,12 +128,12 @@ subprojects { subproject ->
128128
testRuntime "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
129129
testRuntime "org.apache.logging.log4j:log4j-jcl:$log4jVersion"
130130

131-
testCompile "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
132-
testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
133-
testRuntime "org.junit.platform:junit-platform-launcher:${junitPlatformVersion}"
131+
testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
132+
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
133+
testRuntime "org.junit.platform:junit-platform-launcher:$junitPlatformVersion"
134134

135135
// To support JUnit 4 tests
136-
testRuntime "org.junit.vintage:junit-vintage-engine:${junitVintageVersion}"
136+
testRuntime "org.junit.vintage:junit-vintage-engine:$junitVintageVersion"
137137

138138
// To avoid compiler warnings about @API annotations in JUnit code
139139
testCompileOnly 'org.apiguardian:apiguardian-api:1.0.0'
@@ -191,6 +191,7 @@ subprojects { subproject ->
191191
if (name ==~ /(springIo.*)|(testAll)/) {
192192
systemProperty 'RUN_LONG_INTEGRATION_TESTS', 'true'
193193
}
194+
useJUnitPlatform()
194195
}
195196

196197
task sourcesJar(type: Jar) {
@@ -286,7 +287,7 @@ project('spring-rabbit-junit') {
286287
exclude group: 'org.springframework', module: 'spring-web'
287288
}
288289
compile "org.springframework:spring-web:$springVersion"
289-
compile ("org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}", optional)
290+
compile ("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion", optional)
290291
compileOnly 'org.apiguardian:apiguardian-api:1.0.0'
291292

292293
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip

0 commit comments

Comments
 (0)