From 1af424cfe995ef9357477fdaff0afe89d9f5598f Mon Sep 17 00:00:00 2001 From: Andreas Marek Date: Mon, 26 Jan 2026 15:15:11 +1000 Subject: [PATCH] Fix testWithJava21 task running zero tests The testWithJava21 task was missing testClassesDirs, classpath, and dependsOn configuration that testWithJava17 and testWithJava11 have. Without these, Gradle finds no test classes and silently succeeds with 0 tests executed. Co-Authored-By: Claude Opus 4.5 --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index fd9a2d0979..7e6c48c070 100644 --- a/build.gradle +++ b/build.gradle @@ -361,6 +361,11 @@ tasks.register('testWithJava21', Test) { javaLauncher = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(21) } + testClassesDirs = sourceSets.test.output.classesDirs + classpath = sourceSets.test.runtimeClasspath + classpath += sourceSets.jmh.output + dependsOn "jmhClasses" + dependsOn tasks.named('testClasses') } tasks.register('testWithJava17', Test) {