We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e2fdd9 commit a9bfda3Copy full SHA for a9bfda3
sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala
@@ -446,16 +446,10 @@ object DottyPlugin extends AutoPlugin {
446
val _ = compile.value // Ensure that everything is compiled, so TASTy is available.
447
(classDirectory.value ** "*.tasty").get.map(_.getAbsoluteFile)
448
},
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
- }
+ sources ++= Def.taskDyn[Seq[File]] {
+ if (isDotty.value) Def.task { tastyFiles.value }
+ else Def.task { Nil }
457
}.value,
458
459
scalacOptions ++= {
460
if (isDotty.value) {
461
val projectName =
0 commit comments