sbt/main
carlos4s 0b4d57b893 [2.x] fix: Allow cleanFileOutputTask to delete files outside target directory
**Problem**
When sourceManaged or resourceManaged is set to a path outside the target
directory, neither clean nor managedSourcePaths/clean removes the generated
files. The cleanFileOutputTask has a hard guard that skips any file not
inside the target directory, even though these files are tracked via the
previous mechanism and were produced by the task itself.

**Solution**
Replace the targetDir guard in cleanFileOutputTask with a baseDirectory
guard. Files tracked by previous are task-produced outputs that are safe
to delete as long as they are within the project root. The
cleanKeepFiles/cleanKeepGlobs filter still applies for user-specified
exclusions.

Fixes #6895
2026-04-13 01:18:33 +02:00
..
src [2.x] fix: Allow cleanFileOutputTask to delete files outside target directory 2026-04-13 01:18:33 +02:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00