@@ -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 }
0 commit comments