mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 18:43:31 +02:00
Clean Zinc Cache for 'Compile / clean', 'Test / clean'
This commit is contained in:
committed by
Friendseeker
parent
3529e20279
commit
e23419efed
@@ -928,7 +928,20 @@ object Defaults extends BuildCommon {
|
||||
tastyFiles.map(_.getAbsoluteFile)
|
||||
} else Nil
|
||||
}.value,
|
||||
clean := (compileOutputs / clean).value,
|
||||
clean := {
|
||||
val _ = (compileOutputs / clean).value
|
||||
val setup = compileIncSetup.value
|
||||
try {
|
||||
val store = AnalysisUtil.staticCachedStore(
|
||||
analysisFile = setup.cacheFile.toPath,
|
||||
useTextAnalysis = !enableBinaryCompileAnalysis.value,
|
||||
useConsistent = enableConsistentCompileAnalysis.value,
|
||||
)
|
||||
store.clearCache()
|
||||
} catch {
|
||||
case NonFatal(_) => ()
|
||||
}
|
||||
},
|
||||
earlyOutputPing := Def.promise[Boolean],
|
||||
compileProgress := {
|
||||
val s = streams.value
|
||||
|
||||
Reference in New Issue
Block a user