Skip to content

Commit 5a43112

Browse files
committed
chore: add the resource folders
1 parent 5d5436b commit 5a43112

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

project/Build.scala

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,10 +2123,12 @@ object Build {
21232123
// sbt shouldn't add stdlib automatically, we depend on `scala3-library-nonbootstrapped`
21242124
autoScalaLibrary := false,
21252125
// Add the source directories for the compiler (non-boostrapped)
2126-
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),
2127-
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-non-bootstrapped",
2126+
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),
2127+
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-non-bootstrapped",
2128+
Compile / unmanagedResourceDirectories += baseDirectory.value / "resources",
21282129
// Add the test directories for the compiler (non-bootstrapped)
2129-
Test / unmanagedSourceDirectories := Seq(baseDirectory.value / "test"),
2130+
Test / unmanagedSourceDirectories := Seq(baseDirectory.value / "test"),
2131+
Test / unmanagedResourceDirectories += baseDirectory.value / "test-resources",
21302132
// All the dependencies needed by the compiler
21312133
libraryDependencies ++= Seq(
21322134
"com.github.sbt" % "junit-interface" % "0.13.3" % Test,
@@ -2293,10 +2295,12 @@ object Build {
22932295
// sbt shouldn't add stdlib automatically, we depend on `scala3-library-nonbootstrapped`
22942296
autoScalaLibrary := false,
22952297
// Add the source directories for the compiler (boostrapped)
2296-
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),
2297-
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-bootstrapped",
2298+
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),
2299+
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-bootstrapped",
2300+
Compile / unmanagedResourceDirectories += baseDirectory.value / "resources",
22982301
// Add the test directories for the compiler (bootstrapped)
22992302
Test / unmanagedSourceDirectories := Seq(baseDirectory.value / "test"),
2303+
Test / unmanagedResourceDirectories += baseDirectory.value / "test-resources",
23002304
// All the dependencies needed by the compiler
23012305
libraryDependencies ++= Seq(
23022306
"org.scala-lang.modules" % "scala-asm" % "9.8.0-scala-1",

0 commit comments

Comments
 (0)