Skip to content

Commit 686d881

Browse files
committed
Prevent sbt from compiling .scala files at project root
Previously, creating a .scala file at the root of the dotty repository would cause sbt to try to compile it when typing `compile`, now it won't anymore.
1 parent d7896b5 commit 686d881

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

project/Build.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ object Build {
221221

222222
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
223223

224+
// If someone puts a source file at the root (e.g., for manual testing),
225+
// don't pick it up as part of any project.
226+
sourcesInBase := false,
224227
)
225228

226229
// Settings used for projects compiled only with Java

0 commit comments

Comments
 (0)