mirror of https://github.com/sbt/sbt.git
**Problem** When dependencyMode := Direct is set, the filtering was applied at the managedClasspath level, which removed transitive dependencies from all downstream classpaths including Test / dependencyClasspath. This caused runtime test failures because transitive deps like hamcrest-core (pulled in by junit) were missing. **Solution** Move the dependencyMode filtering from managedClasspath to a new filteredDependencyClasspath task, and wire dependencyPicklePath (the classpath used by the compiler) to use it. Runtime classpaths like dependencyClasspath and fullClasspath remain unfiltered, preserving all transitive dependencies for test execution. Fixes #8989 |
||
|---|---|---|
| .. | ||
| src | ||
| NOTICE | ||