Skip to content

Commit a9bfda3

Browse files
committed
Simply sources config for doc task
1 parent 6e2fdd9 commit a9bfda3

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -446,16 +446,10 @@ object DottyPlugin extends AutoPlugin {
446446
val _ = compile.value // Ensure that everything is compiled, so TASTy is available.
447447
(classDirectory.value ** "*.tasty").get.map(_.getAbsoluteFile)
448448
},
449-
sources := Def.taskDyn {
450-
val old = sources.value
451-
452-
if (isDotty.value) Def.task {
453-
old ++ tastyFiles.value
454-
} else Def.task {
455-
old
456-
}
449+
sources ++= Def.taskDyn[Seq[File]] {
450+
if (isDotty.value) Def.task { tastyFiles.value }
451+
else Def.task { Nil }
457452
}.value,
458-
459453
scalacOptions ++= {
460454
if (isDotty.value) {
461455
val projectName =

0 commit comments

Comments
 (0)