From f8d729cd3bed7a077f028b8f6988dd61b02f8813 Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Sat, 25 May 2019 19:09:00 -0700 Subject: [PATCH] Don't set fileOutputs at the compile config level This was problematic because it had no dependency on the compile task which meant that any other task in the config would pick up those fileOutputs which did not make sense. I noticed this because (resources / outputFileStamps).value would include class files. --- main/src/main/scala/sbt/Defaults.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/main/scala/sbt/Defaults.scala b/main/src/main/scala/sbt/Defaults.scala index 93ab73c9c..abad94e2e 100755 --- a/main/src/main/scala/sbt/Defaults.scala +++ b/main/src/main/scala/sbt/Defaults.scala @@ -594,7 +594,7 @@ object Defaults extends BuildCommon { compileInputsSettings ) ++ configGlobal ++ defaultCompileSettings ++ compileAnalysisSettings ++ Seq( clean := Clean.task(ThisScope, full = false).value, - fileOutputs := Seq(Glob(classDirectory.value, RecursiveGlob / "*.class")), + fileOutputs in compile := Seq(Glob(classDirectory.value, RecursiveGlob / "*.class")), compile := compileTask.value, internalDependencyConfigurations := InternalDependencies.configurations.value, manipulateBytecode := compileIncremental.value,