Skip to content

Commit 7a4568f

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 95ae77c commit 7a4568f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

project/Build.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,11 @@ object Build {
208208
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
209209

210210
// enable verbose exception messages for JUnit
211-
testOptions in Test += Tests.Argument(TestFrameworks.JUnit, "-a", "-v")
211+
testOptions in Test += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
212+
213+
// If someone puts a source file at the root (e.g., for manual testing),
214+
// don't pick it up as part of any project.
215+
sourcesInBase := false,
212216
)
213217

214218
// Settings used for projects compiled only with Java

0 commit comments

Comments
 (0)