Add testcontainersBuildService to spring kafka tests that don't have it (#8186)
This commit is contained in:
parent
d8b0771929
commit
a9fa5aacea
|
@ -81,6 +81,8 @@ tasks.compileTestJava {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<Test>().configureEach {
|
tasks.withType<Test>().configureEach {
|
||||||
|
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
|
||||||
|
|
||||||
systemProperty("testLatestDeps", latestDepTest)
|
systemProperty("testLatestDeps", latestDepTest)
|
||||||
|
|
||||||
// required on jdk17
|
// required on jdk17
|
||||||
|
|
|
@ -22,6 +22,10 @@ dependencies {
|
||||||
testLibrary("org.springframework.boot:spring-boot-starter:2.5.3")
|
testLibrary("org.springframework.boot:spring-boot-starter:2.5.3")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<Test>().configureEach {
|
||||||
|
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
|
||||||
|
}
|
||||||
|
|
||||||
val latestDepTest = findProperty("testLatestDeps") as Boolean
|
val latestDepTest = findProperty("testLatestDeps") as Boolean
|
||||||
|
|
||||||
// spring 6 (which spring-kafka 3.+ uses) requires java 17
|
// spring 6 (which spring-kafka 3.+ uses) requires java 17
|
||||||
|
|
Loading…
Reference in New Issue