Gradle 9 Test task no longer automatically classpath test source set custom Test task sourceSets.test.runtimeClasspath
A current Gradle 9 / Android Gradle Plugin 9 task fails with: Gradle 9 custom `Test` task no longer inherits test source-set classpath.
Agent Quick Fix
The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.
Product: Gradle 9 / Android Gradle Plugin 9
Current-contract area: Gradle 9 custom `Test` task no longer inherits test source-set classpath
Likely root cause: A current Gradle 9 / Android Gradle Plugin 9 task fails with: Gradle 9 custom `Test` task no longer inherits test source-set classpath. The local stale integration is plausible but may not reflect the current external contract.
Repair direction: Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.
Validation Status
Codex searched organically, passed with web access, and failed the no-web counterfactual under this fixture.
Symptom
A current Gradle 9 / Android Gradle Plugin 9 task fails with: Gradle 9 custom `Test` task no longer inherits test source-set classpath. The local stale integration is plausible but may not reflect the current external contract.
Why This Happens
The local workspace gives the symptom and stale integration shape, but the correct repair depends on current official product behavior or recent release notes.
Verification
Verifier accepts a repair record only if it states the current contract and an actionable fix using source-backed product terms.
Common Wrong Fixes
- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.
Codex Search Keywords
These are the search terms observed in a neutral Codex validation run for this failure shape.
Gradle 9 Test task no longer automatically classpath test source set custom Test task sourceSets.test.runtimeClasspath
site:docs.gradle.org Gradle 9 Test task custom test classpath source set runtimeClasspath
Gradle 9 upgrade guide custom Test task classesDirs classpath
https://docs.gradle.org/current/userguide/upgrading_version_8.html
'Test task' in https://docs.gradle.org/current/userguide/upgrading_version_8.html
"Relying on conventions for custom Test tasks" Gradle anchor