Add testcontainersBuildService to spring kafka tests that don't have it (#8186)

This commit is contained in:
Lauri Tulmin 2023-03-31 11:26:06 +03:00 committed by GitHub
parent d8b0771929
commit a9fa5aacea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -81,6 +81,8 @@ tasks.compileTestJava {
}
tasks.withType<Test>().configureEach {
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
systemProperty("testLatestDeps", latestDepTest)
// required on jdk17

View File

@ -22,6 +22,10 @@ dependencies {
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
// spring 6 (which spring-kafka 3.+ uses) requires java 17