From e1cf43c6bd15b059e20d58d14b7b2e5c31f03dac Mon Sep 17 00:00:00 2001 From: Adrien Piquerez Date: Mon, 8 Apr 2024 15:53:12 +0200 Subject: [PATCH] Add jar file to compileOutputs --- main/src/main/scala/sbt/Defaults.scala | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main/src/main/scala/sbt/Defaults.scala b/main/src/main/scala/sbt/Defaults.scala index ee10744d2..f28d95b57 100644 --- a/main/src/main/scala/sbt/Defaults.scala +++ b/main/src/main/scala/sbt/Defaults.scala @@ -899,11 +899,9 @@ object Defaults extends BuildCommon { compileOutputs := { import scala.jdk.CollectionConverters.* val c = fileConverter.value - val classFiles = - manipulateBytecode.value.analysis.readStamps.getAllProductStamps.keySet.asScala - (classFiles.toSeq map { x => - c.toPath(x) - }) :+ compileAnalysisFile.value.toPath + val (_, jarFile) = compileIncremental.value + val classFiles = compile.value.readStamps.getAllProductStamps.keySet.asScala + classFiles.toSeq.map(c.toPath) :+ compileAnalysisFile.value.toPath :+ c.toPath(jarFile) }, compileOutputs := compileOutputs.triggeredBy(compile).value, tastyFiles := Def.taskIf {