sbt/main
eugene yokota 879ef86567
[2.0.x] fix: Scope dependencyMode filtering to compilation only (#8990) (#9074)
**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

Co-authored-by: Dream <42954461+eureka928@users.noreply.github.com>
2026-04-12 06:25:55 -04:00
..
src [2.0.x] fix: Scope dependencyMode filtering to compilation only (#8990) (#9074) 2026-04-12 06:25:55 -04:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00