Skip to content

Commit f9fcc36

Browse files
committed
KAFKA-16801 do not fail Gradle 9 build when no test are discovered in a upgrade-system-tests* submodules
related link: https://docs.gradle.org/9.0.0/userguide/upgrading_major_version_9.html#test_task_fails_when_no_tests_are_discovered
1 parent 2cad162 commit f9fcc36

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,12 @@ subprojects {
343343
}
344344
}
345345

346+
if (project.name.startsWith("upgrade-system-tests")) {
347+
tasks.withType(AbstractTestTask).configureEach {
348+
failOnNoDiscoveredTests = false
349+
}
350+
}
351+
346352
// apply the eclipse plugin only to subprojects that hold code. 'connect' is just a folder.
347353
if (!project.name.equals('connect')) {
348354
apply plugin: 'eclipse'

0 commit comments

Comments
 (0)